pub struct CacheInstant(/* private fields */);Implementations§
Source§impl CacheInstant
impl CacheInstant
pub const fn from_unix_seconds(seconds: u64) -> Self
pub const fn as_unix_seconds(self) -> u64
Trait Implementations§
Source§impl Clone for CacheInstant
impl Clone for CacheInstant
Source§fn clone(&self) -> CacheInstant
fn clone(&self) -> CacheInstant
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 CacheInstant
impl Debug for CacheInstant
Source§impl<'de> Deserialize<'de> for CacheInstant
impl<'de> Deserialize<'de> for CacheInstant
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 Ord for CacheInstant
impl Ord for CacheInstant
Source§fn cmp(&self, other: &CacheInstant) -> Ordering
fn cmp(&self, other: &CacheInstant) -> 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 CacheInstant
impl PartialEq for CacheInstant
Source§impl PartialOrd for CacheInstant
impl PartialOrd for CacheInstant
Source§impl Serialize for CacheInstant
impl Serialize for CacheInstant
impl Copy for CacheInstant
impl Eq for CacheInstant
impl StructuralPartialEq for CacheInstant
Auto Trait Implementations§
impl Freeze for CacheInstant
impl RefUnwindSafe for CacheInstant
impl Send for CacheInstant
impl Sync for CacheInstant
impl Unpin for CacheInstant
impl UnsafeUnpin for CacheInstant
impl UnwindSafe for CacheInstant
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