pub enum UpdateCheck {
Daily,
Weekly,
Off,
}Expand description
How often the update notice asks the public repository for its latest commit.
Variants§
Daily
At most once a day. The default: a notice that arrives a month late is not a notice.
Weekly
Off
Never. No request is made, and nothing is cached.
Implementations§
Source§impl UpdateCheck
impl UpdateCheck
Sourcepub fn period_secs(self) -> Option<u64>
pub fn period_secs(self) -> Option<u64>
Seconds that must pass between two checks, None for Off.
Trait Implementations§
Source§impl Clone for UpdateCheck
impl Clone for UpdateCheck
impl Copy for UpdateCheck
Source§impl Debug for UpdateCheck
impl Debug for UpdateCheck
Source§impl Default for UpdateCheck
impl Default for UpdateCheck
Source§impl<'de> Deserialize<'de> for UpdateCheck
impl<'de> Deserialize<'de> for UpdateCheck
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
impl Eq for UpdateCheck
Source§impl PartialEq for UpdateCheck
impl PartialEq for UpdateCheck
Source§impl Serialize for UpdateCheck
impl Serialize for UpdateCheck
impl StructuralPartialEq for UpdateCheck
Auto Trait Implementations§
impl Forget for UpdateCheck
impl Freeze for UpdateCheck
impl Move for UpdateCheck
impl RefUnwindSafe for UpdateCheck
impl Send for UpdateCheck
impl Sync for UpdateCheck
impl Unpin for UpdateCheck
impl UnsafeUnpin for UpdateCheck
impl UnwindSafe for UpdateCheck
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.