[]Struct lapin_futures_openssl::lapin::transport::AMQPTransport

pub struct AMQPTransport<T> {
    pub conn: Connection,
    // some fields omitted
}

Wrappers over a Framed stream using AMQPCodec and lapin-async's Connection

Fields

conn: Connection

Methods

impl<T> AMQPTransport<T> where
    T: AsyncRead + AsyncWrite + Send + 'static, 

pub fn connect(
    stream: T,
    options: ConnectionOptions
) -> impl Send + Future<Item = AMQPTransport<T>, Error = Error> + 'static

starts the connection process

returns a future of a AMQPTransport that is connected

pub fn send_frame(&mut self, frame: AMQPFrame)

Send a frame to the broker.

Notes

This function only appends the frame to a queue, to actually send the frame you have to call either poll or poll_send.

pub fn send_content_frames(
    &mut self,
    channel_id: u16,
    payload: &[u8],
    properties: AMQPProperties
)

Send content frames to the broker.

Notes

This function only appends the frames to a queue, to actually send the frames you have to call either poll or poll_send.

pub fn send_heartbeat(&mut self) -> Result<Async<()>, Error>

Preemptively send an heartbeat frame

Trait Implementations

impl<T> Sink for AMQPTransport<T> where
    T: AsyncWrite + Send + 'static, 

type SinkItem = AMQPFrame

The type of value that the sink accepts.

type SinkError = Error

The type of value produced by the sink when an error occurs.

impl<T> Stream for AMQPTransport<T> where
    T: AsyncRead + AsyncWrite + Send + 'static, 

type Item = ()

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 AMQPTransport<T>

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

impl<T> Sync for AMQPTransport<T> where
    T: Sync

impl<T> Unpin for AMQPTransport<T> where
    T: Unpin

impl<T> !UnwindSafe for AMQPTransport<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, 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.