Trait self_update::update::ReleaseUpdate [−][src]
pub trait ReleaseUpdate {}Show methods
fn get_latest_release(&self) -> Result<Release>; fn get_release_version(&self, ver: &str) -> Result<Release>; fn current_version(&self) -> String; fn target(&self) -> String; fn target_version(&self) -> Option<String>; fn bin_name(&self) -> String; fn bin_install_path(&self) -> PathBuf; fn bin_path_in_archive(&self) -> PathBuf; fn show_download_progress(&self) -> bool; fn show_output(&self) -> bool; fn no_confirm(&self) -> bool; fn progress_style(&self) -> Option<ProgressStyle>; fn auth_token(&self) -> Option<String>; fn update(&self) -> Result<Status> { ... } fn update_extended(&self) -> Result<UpdateStatus> { ... }
Updates to a specified or latest release
Required methods
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
Provided methods
fn update(&self) -> Result<Status>
[src]
Display release information and update the current binary to the latest release, pending confirmation from the user
fn update_extended(&self) -> Result<UpdateStatus>
[src]
Same as update
, but returns UpdateStatus
.
Implementors
impl ReleaseUpdate for self_update::backends::github::Update
[src]
impl ReleaseUpdate for self_update::backends::github::Update
[src]fn get_latest_release(&self) -> Result<Release>
[src]
fn get_release_version(&self, ver: &str) -> Result<Release>
[src]
fn current_version(&self) -> String
[src]
fn target(&self) -> String
[src]
fn target_version(&self) -> Option<String>
[src]
fn bin_name(&self) -> String
[src]
fn bin_install_path(&self) -> PathBuf
[src]
fn bin_path_in_archive(&self) -> PathBuf
[src]
fn show_download_progress(&self) -> bool
[src]
fn show_output(&self) -> bool
[src]
fn no_confirm(&self) -> bool
[src]
fn progress_style(&self) -> Option<ProgressStyle>
[src]
fn auth_token(&self) -> Option<String>
[src]
impl ReleaseUpdate for self_update::backends::gitlab::Update
[src]
impl ReleaseUpdate for self_update::backends::gitlab::Update
[src]fn get_latest_release(&self) -> Result<Release>
[src]
fn get_release_version(&self, ver: &str) -> Result<Release>
[src]
fn current_version(&self) -> String
[src]
fn target(&self) -> String
[src]
fn target_version(&self) -> Option<String>
[src]
fn bin_name(&self) -> String
[src]
fn bin_install_path(&self) -> PathBuf
[src]
fn bin_path_in_archive(&self) -> PathBuf
[src]
fn show_download_progress(&self) -> bool
[src]
fn show_output(&self) -> bool
[src]
fn no_confirm(&self) -> bool
[src]
fn progress_style(&self) -> Option<ProgressStyle>
[src]
fn auth_token(&self) -> Option<String>
[src]
impl ReleaseUpdate for self_update::backends::s3::Update
[src]
impl ReleaseUpdate for self_update::backends::s3::Update
[src]