Struct prometrics::timestamp::TimestampMut
[−]
[src]
pub struct TimestampMut<'a>(_);
Mutable variant of Timestamp
.
Methods
impl<'a> TimestampMut<'a>
[src]
fn set(&mut self, timestamp: i64)
[src]
Sets the value of this timestamp to timestamp
.
fn set_now(&mut self)
[src]
Sets the value of this timestamp to the current unixtime in milliseconds.
fn set_time(&mut self, time: SystemTime)
[src]
Sets the value of this timestamp to time
.
fn clear(&mut self)
[src]
Clears the value of this timestamp.