pub struct Updater { /* private fields */ }
Expand description
Update checker.
Implementations§
source§impl Updater
impl Updater
sourcepub fn unchecked(
name: impl Into<String>,
repo: Repository,
current: Version
) -> Self
pub fn unchecked( name: impl Into<String>, repo: Repository, current: Version ) -> Self
Creates a new updater without checking for updates.
sourcepub fn new(name: impl Into<String>, repo: Repository, current: Version) -> Self
pub fn new(name: impl Into<String>, repo: Repository, current: Version) -> Self
Creates a new updater and automatically checks for updates.
sourcepub fn is_outdated(&self) -> bool
pub fn is_outdated(&self) -> bool
Whether the current version is outdated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Updater
impl RefUnwindSafe for Updater
impl Send for Updater
impl Sync for Updater
impl Unpin for Updater
impl UnwindSafe for Updater
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more