Struct tls_api::TlsAcceptorBox [−][src]
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>>ⓘ
[src][−]
&'a self,
socket: S
) -> BoxFuture<'a, Result<TlsStream>>ⓘ
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
impl !RefUnwindSafe for TlsAcceptorBox
[src]
impl Send for TlsAcceptorBox
[src]
impl Sync for TlsAcceptorBox
[src]
impl Unpin for TlsAcceptorBox
[src]
impl !UnwindSafe for TlsAcceptorBox
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,