Enum tonari_actor::timed::TimedMessage [−][src]
pub enum TimedMessage<M> {
Instant {
message: M,
},
Delayed {
message: M,
fire_at: Instant,
},
Recurring {
factory: Box<dyn FnMut() -> M + Send>,
fire_at: Instant,
interval: Duration,
},
}Expand description
A message that can be delivered now, at certain time and optionally repeatedly.
Variants
Fields of Delayed
message: Mfire_at: InstantTrait Implementations
This implementation allows sending direct unwrapped messages to wrapped actors.