Struct ockam_node::Cancel [−][src]
pub struct Cancel<'ctx, M: Message> { /* fields omitted */ }
Expand description
A message wraper type that allows users to cancel message receival
A worker can block in place to wait for a message. If the next message is not the desired type, it can be cancelled which re-queues it into the mailbox.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'ctx, M> !RefUnwindSafe for Cancel<'ctx, M>
impl<'ctx, M> !UnwindSafe for Cancel<'ctx, M>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more