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]
impl Update
[src]pub fn configure() -> UpdateBuilder
[src]
pub fn configure() -> UpdateBuilder
[src]Initialize a new Update
builder
Trait Implementations
impl ReleaseUpdate for Update
[src]
impl ReleaseUpdate for Update
[src]fn get_latest_release(&self) -> Result<Release>
[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]
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]
fn current_version(&self) -> String
[src]Current version of binary being updated
fn target_version(&self) -> Option<String>
[src]
fn target_version(&self) -> Option<String>
[src]Target version optionally specified for the update
fn bin_install_path(&self) -> PathBuf
[src]
fn bin_install_path(&self) -> PathBuf
[src]Installation path for the binary being updated
fn bin_path_in_archive(&self) -> PathBuf
[src]
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]
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]
fn show_output(&self) -> bool
[src]Flag indicating if process informative messages shall be output
fn no_confirm(&self) -> bool
[src]
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]
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]
fn auth_token(&self) -> Option<String>
[src]Authorisation token for communicating with backend
fn update(&self) -> Result<Status>
[src]
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]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[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]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,