pub enum IsSuspended {
False,
True,
TrueUntil(Duration),
}Variants§
Implementations§
Source§impl IsSuspended
impl IsSuspended
pub fn is_suspended(&self) -> bool
Trait Implementations§
Source§impl Clone for IsSuspended
impl Clone for IsSuspended
Source§fn clone(&self) -> IsSuspended
fn clone(&self) -> IsSuspended
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 IsSuspended
impl Debug for IsSuspended
Source§impl Default for IsSuspended
impl Default for IsSuspended
Source§impl<'de> Deserialize<'de> for IsSuspended
impl<'de> Deserialize<'de> for IsSuspended
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
Source§impl From<bool> for IsSuspended
impl From<bool> for IsSuspended
Source§impl Hash for IsSuspended
impl Hash for IsSuspended
Source§impl Ord for IsSuspended
impl Ord for IsSuspended
Source§fn cmp(&self, other: &IsSuspended) -> Ordering
fn cmp(&self, other: &IsSuspended) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IsSuspended
impl PartialEq for IsSuspended
Source§impl PartialOrd for IsSuspended
impl PartialOrd for IsSuspended
Source§impl Serialize for IsSuspended
impl Serialize for IsSuspended
impl Eq for IsSuspended
impl StructuralPartialEq for IsSuspended
Auto Trait Implementations§
impl Freeze for IsSuspended
impl RefUnwindSafe for IsSuspended
impl Send for IsSuspended
impl Sync for IsSuspended
impl Unpin for IsSuspended
impl UnwindSafe for IsSuspended
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.