pub struct Seconds(/* private fields */);
Expand description
Represents fractional seconds since the unix epoch
These can be derived from std::time::Duration
and be converted
into std::time::Duration
A Default
implementation is provided which yields the number of seconds since the epoch from
the system time’s now
value
You can also and and subtract durations from Seconds.
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
impl Copy for Seconds
impl StructuralPartialEq for Seconds
Auto Trait Implementations§
impl Freeze for Seconds
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