pub struct Seconds(/* private fields */);
Expand description
Represents fractional seconds since the epoch These can be derived from std::time::Duration and be converted too std::time::Duration
A Default implementation is provided which yields the number of seconds since the epoch from
the system time’s now
value
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Seconds
impl<'de> Deserialize<'de> for Seconds
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 PartialEq for Seconds
impl PartialEq for Seconds
impl StructuralPartialEq for Seconds
Auto Trait Implementations§
impl RefUnwindSafe for Seconds
impl Send for Seconds
impl Sync for Seconds
impl Unpin for Seconds
impl UnwindSafe for Seconds
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