[][src]Enum amiquip::ConsumerMessage

pub enum ConsumerMessage {
    Delivery(Delivery),
    ClientCancelled,
    ServerCancelled,
    ClientClosedChannel,
    ServerClosedChannel(ErrorKind),
    ClientClosedConnection,
    ServerClosedConnection(ErrorKind),
}

Messages delivered to consumers.

Variants

Delivery(Delivery)

A delivered message.

ClientCancelled

The channel was cancelled by the client; e.g., by calling Consumer::cancel.

ServerCancelled

The channel has been cancelled by the server; e.g., because the queue the consumer is attached to was deleted.

ClientClosedChannel

The client has closed the channel where this consumer was created.

ServerClosedChannel(ErrorKind)

The server has closed the channel where this consumer was created.

ClientClosedConnection

The client has closed the connection where this consumer was created.

ServerClosedConnection(ErrorKind)

The server has closed the connection where this consumer was created.

Trait Implementations

impl Clone for ConsumerMessage[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ConsumerMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.