pub struct SelfUpdater { /* private fields */ }Expand description
Self-updater for the rx CLI
Implementations§
Source§impl SelfUpdater
impl SelfUpdater
Sourcepub fn install_method(&self) -> InstallMethod
pub fn install_method(&self) -> InstallMethod
Get the detected installation method
Sourcepub async fn check_latest(&self) -> Result<Option<ReleaseInfo>>
pub async fn check_latest(&self) -> Result<Option<ReleaseInfo>>
Check for the latest release
Sourcepub fn update_via_pip(&self) -> Result<()>
pub fn update_via_pip(&self) -> Result<()>
Update via pip
Sourcepub fn update_via_cargo(&self) -> Result<()>
pub fn update_via_cargo(&self) -> Result<()>
Update via cargo
Sourcepub async fn update_binary(&self, release: &ReleaseInfo) -> Result<PathBuf>
pub async fn update_binary(&self, release: &ReleaseInfo) -> Result<PathBuf>
Download and install the update (for binary installs)
Auto Trait Implementations§
impl Freeze for SelfUpdater
impl RefUnwindSafe for SelfUpdater
impl Send for SelfUpdater
impl Sync for SelfUpdater
impl Unpin for SelfUpdater
impl UnwindSafe for SelfUpdater
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