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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,