Struct tls_api::TlsAcceptorBox[][src]

pub struct TlsAcceptorBox(_);

Dynamic version of TlsAcceptor.

This can be constructed either with:

Implementations

impl TlsAcceptorBox[src]

pub fn type_dyn(&self) -> &'static dyn TlsAcceptorType[src]

Dynamic (without type parameter) version of the acceptor.

This function returns a connector type, which can be used to constructor connectors.

pub fn accept<'a, S: AsyncSocket>(
    &'a self,
    socket: S
) -> BoxFuture<'a, Result<TlsStream>>

Notable traits for BoxFuture<'a, R>

impl<'a, R> Future for BoxFuture<'a, R> type Output = R;
[src]

Accept a connection.

This operation returns a future which is resolved when the negotiation is complete, and the stream is ready to send and receive.

Auto Trait Implementations

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.