pub struct TimerRecord {
pub iri: String,
pub actor: String,
pub send_id: String,
pub due_ms: i64,
pub event: Event,
pub recipient: String,
pub reminder: Option<ReminderSpec>,
pub correlation: Option<String>,
}Expand description
A durable timer: a delayed send, a request timeout or a reminder.
Fields§
§iri: StringThe timer IRI, <entry>/timer/<send id>; also the message id of its event (for a
reminder, of its occurrences plus /<n>).
actor: StringThe actor that scheduled it.
send_id: StringThe send id (for a reminder, its name).
due_ms: i64Due time in milliseconds: the scheduling entry’s timestamp plus the delay (for a reminder, of the first occurrence).
event: EventThe event delivered when it fires.
recipient: StringThe address the event is delivered to.
reminder: Option<ReminderSpec>Set for a reminder.
correlation: Option<String>Set for a request timeout: the request’s correlation id.
Implementations§
Trait Implementations§
Source§impl Clone for TimerRecord
impl Clone for TimerRecord
Source§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 Forget for TimerRecord
impl Freeze for TimerRecord
impl Move 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