[][src]Struct amq_protocol_tcp::MidHandshakeTlsStream

pub struct MidHandshakeTlsStream<S, F: FnOnce(TcpStream, AMQPUri) -> S>(_, _, _);

A TLS stream which has been interrupted during the handshake

Methods

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

pub fn get_ref(&self) -> &MioTcpStream[src]

Get a reference to the inner stream

pub fn get_mut(&mut self) -> &mut MioTcpStream[src]

Get a mutablereference to the inner stream

pub fn handshake(self) -> Result<S, HandshakeError<S, F>>[src]

Retry the handshake

Auto Trait Implementations

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

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

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

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

impl<S, F> !UnwindSafe for MidHandshakeTlsStream<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, 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.