Struct prometrics::timestamp::TimestampMut
[−]
[src]
pub struct TimestampMut<'a>(_);
Mutable variant of Timestamp
.
Methods
impl<'a> TimestampMut<'a>
[src]
pub fn set(&mut self, timestamp: i64)
[src]
Sets the value of this timestamp to timestamp
.
pub fn set_now(&mut self)
[src]
Sets the value of this timestamp to the current unixtime in milliseconds.
pub fn set_time(&mut self, time: SystemTime)
[src]
Sets the value of this timestamp to time
.
pub fn clear(&mut self)
[src]
Clears the value of this timestamp.
Methods from Deref<Target = Timestamp>
Trait Implementations
impl<'a> Debug for TimestampMut<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more