Struct ockam_node::DelayedEvent
source · pub struct DelayedEvent<M: Message + Clone> { /* private fields */ }
Expand description
Allow to send message to destination address periodically after some delay Only one scheduled heartbeat allowed at a time Dropping this handle cancels scheduled heartbeat
Implementations§
source§impl<M: Message + Clone> DelayedEvent<M>
impl<M: Message + Clone> DelayedEvent<M>
Trait Implementations§
Auto Trait Implementations§
impl<M> !RefUnwindSafe for DelayedEvent<M>
impl<M> Send for DelayedEvent<M>
impl<M> Sync for DelayedEvent<M>where
M: Sync,
impl<M> Unpin for DelayedEvent<M>where
M: Unpin,
impl<M> !UnwindSafe for DelayedEvent<M>
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