[][src]Enum self_update::Status

pub enum Status {
    UpToDate(String),
    Updated(String),
}

Status returned after updating

Wrapped Strings are version tags

Variants

UpToDate(String)
Updated(String)

Methods

impl Status[src]

pub fn version(&self) -> &str[src]

Return the version tag

pub fn uptodate(&self) -> bool[src]

Returns true if Status::UpToDate

pub fn updated(&self) -> bool[src]

Returns true if Status::Updated

Trait Implementations

impl Clone for Status[src]

impl Display for Status[src]

impl Debug for Status[src]

Auto Trait Implementations

impl Send for Status

impl Sync for Status

impl Unpin for Status

impl UnwindSafe for Status

impl RefUnwindSafe for Status

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err