Trackable

Trait Trackable 

Source
pub trait Trackable {
    type Timestamp: PartialOrd + Clone;

    // Required methods
    fn timestamp(&self) -> Self::Timestamp;
    fn set_timestamp(&mut self, ts: Self::Timestamp);
}
Expand description

Trait for types that have an intrinsic timestamp

Required Associated Types§

Required Methods§

Source

fn timestamp(&self) -> Self::Timestamp

Source

fn set_timestamp(&mut self, ts: Self::Timestamp)

Implementors§