Struct TlsAcceptor

Source
pub struct TlsAcceptor(pub SslAcceptor);

Tuple Fields§

§0: SslAcceptor

Trait Implementations§

Source§

impl TlsAcceptor for TlsAcceptor

Source§

const IMPLEMENTED: bool = true

Whether this acceptor type is implemented. Read more
Source§

const SUPPORTS_ALPN: bool = true

Whether this implementation supports ALPN negotiation.
Source§

const SUPPORTS_DER_KEYS: bool = true

Whether this implementation supports construction of acceptor using a pair of a DER certificate and file pair.
Source§

const SUPPORTS_PKCS12_KEYS: bool = true

Whether this implementation supports construction of acceptor using PKCS #12 file.
Source§

type Builder = TlsAcceptorBuilder

Type of the builder for this acceptor.
Source§

type Underlying = SslAcceptor

Type of the underlying acceptor.
Source§

type TlsStream = TlsStream<AsyncSocketBox>

crate::TlsStream<tls_api::AsyncSocketBox>. Read more
Source§

fn underlying_mut(&mut self) -> &mut Self::Underlying

Get the underlying acceptor. Read more
Source§

fn info() -> ImplInfo

Implementation info.
Source§

fn builder_from_der_key(cert: &[u8], key: &[u8]) -> Result<TlsAcceptorBuilder>

New builder from given server key. Read more
Source§

fn builder_from_pkcs12( pkcs12: &[u8], passphrase: &str, ) -> Result<TlsAcceptorBuilder>

New builder from given server key. Read more
Source§

fn accept_with_socket<'a, S>( &'a self, stream: S, ) -> BoxFuture<'a, Result<TlsStreamWithSocket<S>>>
where S: AsyncSocket,

Accept a connection. Read more
Source§

fn accept_impl_tls_stream<'a, S>( &'a self, stream: S, ) -> BoxFuture<'a, Result<Self::TlsStream>>
where S: AsyncSocket,

Accept a connection. Read more
Source§

const TYPE_DYN: &'static dyn TlsAcceptorType = _

Dynamic (without type parameter) version of the acceptor. Read more
Source§

fn into_dyn(self) -> TlsAcceptorBox

Dynamic (without type parameter) version of the connector.
Source§

fn accept<S>(&self, stream: S) -> BoxFuture<'_, Result<TlsStream, Error>>
where S: AsyncSocket + Debug + Unpin,

Accept a connection. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.