Struct chain_time::timeline::Timeline  
source · pub struct Timeline(pub(crate) SystemTime);Expand description
Represent a timeline with a specific start point rooted on earth time.
Tuple Fields§
§0: SystemTimeImplementations§
source§impl Timeline
 
impl Timeline
sourcepub fn new(start_time: SystemTime) -> Self
 
pub fn new(start_time: SystemTime) -> Self
Create a new timeline, which is a time starting point
sourcepub fn differential(&self, t: &SystemTime) -> Option<TimeOffset>
 
pub fn differential(&self, t: &SystemTime) -> Option<TimeOffset>
Return the duration since the creation of the timeline
If the time is earlier than the start of this timeline, then None is returned.
Trait Implementations§
source§impl From<SystemTime> for Timeline
 
impl From<SystemTime> for Timeline
source§fn from(s: SystemTime) -> Self
 
fn from(s: SystemTime) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnwindSafe for Timeline
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