Struct tls_api::TlsAcceptorBox
source · [−]pub struct TlsAcceptorBox(_);
Expand description
Dynamic version of TlsAcceptor
.
This can be constructed either with:
Implementations
sourceimpl TlsAcceptorBox
impl TlsAcceptorBox
sourcepub fn type_dyn(&self) -> &'static dyn TlsAcceptorType
pub fn type_dyn(&self) -> &'static dyn TlsAcceptorType
Dynamic (without type parameter) version of the acceptor.
This function returns a connector type, which can be used to constructor connectors.
sourcepub 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;
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;
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
impl Send for TlsAcceptorBox
impl Sync for TlsAcceptorBox
impl Unpin for TlsAcceptorBox
impl !UnwindSafe for TlsAcceptorBox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more