[]Struct lapin_futures_native_tls::lapin::consumer::Consumer

pub struct Consumer<T> { /* fields omitted */ }

Methods

impl<T> Consumer<T> where
    T: 'static + Send + Sync + AsyncRead + AsyncWrite

pub fn new(
    transport: Arc<Mutex<RawMutex, AMQPTransport<T>>>,
    channel_id: u16,
    queue: String,
    consumer_tag: String
) -> Consumer<T>

pub fn update_consumer_tag(&mut self, consumer_tag: String)

pub fn subscriber(&self) -> ConsumerSub

Trait Implementations

impl<T> Clone for Consumer<T> where
    T: Clone

impl<T> Stream for Consumer<T> where
    T: 'static + Send + Sync + AsyncRead + AsyncWrite

type Item = Delivery

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Consumer<T>

impl<T> Send for Consumer<T> where
    T: Send

impl<T> Sync for Consumer<T> where
    T: Send

impl<T> Unpin for Consumer<T>

impl<T> !UnwindSafe for Consumer<T>

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> Erased for T

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

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

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.