pub struct Epoch {
pub duration: Duration,
pub start: i64,
}Expand description
An Epoch consists of a start time and optionally, a duration (seconds). If None, the system assumes an infinite duration
Fields§
§duration: Duration§start: i64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Epoch
impl<'de> Deserialize<'de> for Epoch
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 Epoch
impl Ord for Epoch
Source§impl PartialOrd for Epoch
impl PartialOrd for Epoch
impl Copy for Epoch
impl Eq for Epoch
impl StructuralPartialEq for Epoch
Auto Trait Implementations§
impl Freeze for Epoch
impl RefUnwindSafe for Epoch
impl Send for Epoch
impl Sync for Epoch
impl Unpin for Epoch
impl UnwindSafe for Epoch
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<S> Stateful<S> for S
impl<S> Stateful<S> for S
Source§fn state(&self) -> S
fn state(&self) -> S
Stateful::state is used to get the state of the object
Source§fn update_state(&mut self, state: S)
fn update_state(&mut self, state: S)
Stateful::update_state is used to update the state of the object