[][src]Enum amq_protocol_tcp::HandshakeError

pub enum HandshakeError<S, F: FnOnce(TcpStream, AMQPUri) -> S> {
    WouldBlock(MidHandshakeTlsStream<S, F>),
    Failure(Error),
}

An error returned while performing the handshake

Variants

WouldBlock(MidHandshakeTlsStream<S, F>)

We hit WouldBlock during handshake

Failure(Error)

We hit a critical failure

Trait Implementations

impl<S, F: FnOnce(TcpStream, AMQPUri) -> S> Debug for HandshakeError<S, F>[src]

impl<S, F: FnOnce(TcpStream, AMQPUri) -> S> Display for HandshakeError<S, F>[src]

impl<S, F: FnOnce(TcpStream, AMQPUri) -> S> Error for HandshakeError<S, F>[src]

impl<S, F: FnOnce(TcpStream, AMQPUri) -> S> From<Error> for HandshakeError<S, F>[src]

Auto Trait Implementations

impl<S, F> !RefUnwindSafe for HandshakeError<S, F>

impl<S, F> Send for HandshakeError<S, F> where
    F: Send

impl<S, F> Sync for HandshakeError<S, F> where
    F: Sync

impl<S, F> Unpin for HandshakeError<S, F> where
    F: Unpin

impl<S, F> !UnwindSafe for HandshakeError<S, F>

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> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?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.