Struct self_update::backends::github::Update[][src]

pub struct Update { /* fields omitted */ }

Updates to a specified or latest release distributed via GitHub

Implementations

impl Update[src]

pub fn configure() -> UpdateBuilder[src]

Initialize a new Update builder

Trait Implementations

impl Debug for Update[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl ReleaseUpdate for Update[src]

fn get_latest_release(&self) -> Result<Release>[src]

Fetch details of the latest release from the backend

fn get_release_version(&self, ver: &str) -> Result<Release>[src]

Fetch details of the release matching the specified version

fn current_version(&self) -> String[src]

Current version of binary being updated

fn target(&self) -> String[src]

Target platform the update is being performed for

fn target_version(&self) -> Option<String>[src]

Target version optionally specified for the update

fn bin_name(&self) -> String[src]

Name of the binary being updated

fn bin_install_path(&self) -> PathBuf[src]

Installation path for the binary being updated

fn bin_path_in_archive(&self) -> PathBuf[src]

Path of the binary to be extracted from release package

fn show_download_progress(&self) -> bool[src]

Flag indicating if progress information shall be output when downloading a release

fn show_output(&self) -> bool[src]

Flag indicating if process informative messages shall be output

fn no_confirm(&self) -> bool[src]

Flag indicating if the user shouldn’t be prompted to confirm an update

fn progress_style(&self) -> Option<ProgressStyle>[src]

Styling for progress information if show_download_progress is set (see indicatif::ProgressStyle)

fn auth_token(&self) -> Option<String>[src]

Authorisation token for communicating with backend

fn update(&self) -> Result<Status>[src]

Display release information and update the current binary to the latest release, pending confirmation from the user Read more

fn update_extended(&self) -> Result<UpdateStatus>[src]

Same as update, but returns UpdateStatus.

Auto Trait Implementations

impl RefUnwindSafe for Update

impl Send for Update

impl Sync for Update

impl Unpin for Update

impl UnwindSafe for Update

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V