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> Send for Cancel<'ctx, M>
impl<'ctx, M> Sync for Cancel<'ctx, M> where
M: Sync,
M: Sync,
impl<'ctx, M> Unpin for Cancel<'ctx, M> where
M: Unpin,
M: Unpin,
impl<'ctx, M> !UnwindSafe for Cancel<'ctx, M>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,