pub struct UpdaterConfig {
pub auto_check: bool,
pub auto_install: bool,
pub check_interval_hours: u32,
}Expand description
htree self-update preferences. Reads [updater] from
~/.hashtree/config.toml. Auto-check is on by default — htree will
quietly check for a newer published binary at most once per
check_interval_hours and print a one-liner to stderr when one exists.
Auto-install is off by default; flip it on to install the new binary
in the background and print the result.
Fields§
§auto_check: bool§auto_install: bool§check_interval_hours: u32Trait Implementations§
Source§impl Clone for UpdaterConfig
impl Clone for UpdaterConfig
Source§fn clone(&self) -> UpdaterConfig
fn clone(&self) -> UpdaterConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdaterConfig
impl Debug for UpdaterConfig
Source§impl Default for UpdaterConfig
impl Default for UpdaterConfig
Source§impl<'de> Deserialize<'de> for UpdaterConfig
impl<'de> Deserialize<'de> for UpdaterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UpdaterConfig
impl RefUnwindSafe for UpdaterConfig
impl Send for UpdaterConfig
impl Sync for UpdaterConfig
impl Unpin for UpdaterConfig
impl UnsafeUnpin for UpdaterConfig
impl UnwindSafe for UpdaterConfig
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