[][src]Trait amqp::Consumer

pub trait Consumer: Send {
    fn handle_delivery(
        &mut self,
        channel: &mut Channel,
        method: Deliver,
        headers: BasicProperties,
        body: Vec<u8>
    ); }

Required methods

fn handle_delivery(
    &mut self,
    channel: &mut Channel,
    method: Deliver,
    headers: BasicProperties,
    body: Vec<u8>
)

Loading content...

Implementations on Foreign Types

impl Consumer for Box<dyn Consumer>
[src]

Loading content...

Implementors

impl<F> Consumer for F where
    F: FnMut(&mut Channel, Deliver, BasicProperties, Vec<u8>) + Send + 'static, 
[src]

Loading content...