Struct lapin_futures::channel::Channel [] [src]

pub struct Channel<T> {
    pub transport: Arc<Mutex<AMQPTransport<T>>>,
    pub id: u16,
}

Channel provides methods to act on a channel, such as managing queues

Fields

Methods

impl<T: AsyncRead + AsyncWrite + 'static> Channel<T>
[src]

creates a queue

returns a future that resolves once the queue is available

WARNING: this method cannot pass custom queue_declare arguments yet

publishes a message on a queue

WARNING: does not handle chunking of the content for now

creates a consumer stream

returns a future of a Consumer that resolves once the method succeeds

Consumer implements futures::Stream, so it can be used with any of the usual combinators

acks a message

rejects a message

purges a queue

Trait Implementations

impl<T: Clone> Clone for Channel<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more