pub struct TimerConfig {
pub id: TimerId,
pub actor_id: ActorId,
pub scheduled_at: Instant,
pub message: Box<dyn Any + Send>,
pub interval: Option<Duration>,
}Expand description
Timer configuration.
Fields§
§id: TimerId§actor_id: ActorId§scheduled_at: Instant§message: Box<dyn Any + Send>§interval: Option<Duration>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TimerConfig
impl !Sync for TimerConfig
impl !UnwindSafe for TimerConfig
impl Forget for TimerConfig
impl Freeze for TimerConfig
impl Move for TimerConfig
impl Send for TimerConfig
impl Unpin for TimerConfig
impl UnsafeUnpin for TimerConfig
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