[][src]Enum lapin_futures_tls_internal::AMQPStream

pub enum AMQPStream<TlsStream: AsyncRead + AsyncWrite + Send + 'static> {
    Raw(TcpStream),
    Tls(Box<TlsStream>),
}
Deprecated:

use lapin directly instead

Represents either a raw TcpStream or a TlsStream. The TlsStream is wrapped in a Box to keep the enum footprint minimal.

Variants

Deprecated:

use lapin directly instead

The raw TcpStream used for basic AMQP connections.

Tls(Box<TlsStream>)
Deprecated:

use lapin directly instead

The TlsStream used for AMQPs connections.

Trait Implementations

impl<TlsStream: AsyncRead + AsyncWrite + Send + 'static> AsyncRead for AMQPStream<TlsStream>[src]

impl<TlsStream: AsyncRead + AsyncWrite + Send + 'static> AsyncWrite for AMQPStream<TlsStream>[src]

impl<TlsStream: AsyncRead + AsyncWrite + Send + 'static> Read for AMQPStream<TlsStream>[src]

impl<TlsStream: AsyncRead + AsyncWrite + Send + 'static> Write for AMQPStream<TlsStream>[src]

Auto Trait Implementations

impl<TlsStream> !RefUnwindSafe for AMQPStream<TlsStream>

impl<TlsStream> Send for AMQPStream<TlsStream>

impl<TlsStream> Sync for AMQPStream<TlsStream> where
    TlsStream: Sync

impl<TlsStream> Unpin for AMQPStream<TlsStream>

impl<TlsStream> !UnwindSafe for AMQPStream<TlsStream>

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<R> ReadBytesExt for R where
    R: Read + ?Sized

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.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized