pub struct TimerRecord {
pub id: String,
pub deadline_ms: u64,
pub owner: Value,
pub payload: Value,
}Expand description
A durable timer: an absolute deadline plus who owns it. The deadline is absolute rather than a remaining duration so that time spent down still counts, and a timer that came due while the process was gone fires at once.
Fields§
§id: String§deadline_ms: u64§owner: Value§payload: ValueTrait Implementations§
Source§impl Clone for TimerRecord
impl Clone for TimerRecord
Source§fn clone(&self) -> TimerRecord
fn clone(&self) -> TimerRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimerRecord
impl Debug for TimerRecord
Source§impl<'de> Deserialize<'de> for TimerRecord
impl<'de> Deserialize<'de> for TimerRecord
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 PartialEq for TimerRecord
impl PartialEq for TimerRecord
Source§impl Serialize for TimerRecord
impl Serialize for TimerRecord
impl StructuralPartialEq for TimerRecord
Auto Trait Implementations§
impl Freeze for TimerRecord
impl RefUnwindSafe for TimerRecord
impl Send for TimerRecord
impl Sync for TimerRecord
impl Unpin for TimerRecord
impl UnsafeUnpin for TimerRecord
impl UnwindSafe for TimerRecord
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