Struct ockam::Cancel[][src]

pub struct Cancel<'ctx, M> where
    M: Message
{ /* fields omitted */ }

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

impl<'ctx, M> Cancel<'ctx, M> where
    M: Message
[src]

pub async fn cancel(self)[src]

Cancel this message

Trait Implementations

impl<'ctx, M> Debug for Cancel<'ctx, M> where
    M: Debug + Message
[src]

impl<'ctx, M> Deref for Cancel<'ctx, M> where
    M: Message
[src]

type Target = M

The resulting type after dereferencing.

impl<'ctx, M> Display for Cancel<'ctx, M> where
    M: Display + Message
[src]

impl<'ctx, M> PartialEq<M> for Cancel<'ctx, M> where
    M: PartialEq<M> + Message
[src]

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

impl<'ctx, M> Unpin for Cancel<'ctx, M> where
    M: Unpin

impl<'ctx, M> !UnwindSafe for Cancel<'ctx, M>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,