pub struct SslAcceptor { /* private fields */ }Expand description
Upgrades existing I/O connections to server-side TLS using OpenSSL.
Reads TlsConfig from each connection’s configuration. Readiness observes
the shared per-thread soft limit set by crate::max_concurrent_ssl_accept
without reserving a slot. Each call holds a slot until completion, error,
timeout, or cancellation. Clones share both the OpenSSL context and counter.
Existing filters remain below the returned SslFilter.
Implementations§
Source§impl SslAcceptor
impl SslAcceptor
Sourcepub fn new(acceptor: SslAcceptor) -> SslAcceptor
pub fn new(acceptor: SslAcceptor) -> SslAcceptor
Creates a service from a prepared OpenSSL acceptor.
Captures the current thread’s handshake counter without changing the supplied certificate, verification, or protocol settings.
Trait Implementations§
Source§impl Clone for SslAcceptor
impl Clone for SslAcceptor
Source§fn clone(&self) -> SslAcceptor
fn clone(&self) -> SslAcceptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SslAcceptor
impl Debug for SslAcceptor
Source§impl From<SslAcceptor> for SslAcceptor
impl From<SslAcceptor> for SslAcceptor
Source§fn from(acceptor: SslAcceptor) -> SslAcceptor
fn from(acceptor: SslAcceptor) -> SslAcceptor
Source§impl<F, St> Service<St, Io<F>> for SslAcceptorwhere
F: Filter,
impl<F, St> Service<St, Io<F>> for SslAcceptorwhere
F: Filter,
Source§fn bind(&self, ctx: BindCtx<'_>)
fn bind(&self, ctx: BindCtx<'_>)
Registers capacity-change notifications with the service readiness scope.
Source§async fn ready(
&self,
_: Ctx<'_, SslAcceptor, St>,
) -> Result<(), <SslAcceptor as Service<St, Io<F>>>::Error>
async fn ready( &self, _: Ctx<'_, SslAcceptor, St>, ) -> Result<(), <SslAcceptor as Service<St, Io<F>>>::Error>
Waits for spare capacity without reserving it.
Source§async fn call(
&self,
io: Io<F>,
_: Ctx<'_, SslAcceptor, St>,
) -> Result<<SslAcceptor as Service<St, Io<F>>>::Res, <SslAcceptor as Service<St, Io<F>>>::Error>
async fn call( &self, io: Io<F>, _: Ctx<'_, SslAcceptor, St>, ) -> Result<<SslAcceptor as Service<St, Io<F>>>::Res, <SslAcceptor as Service<St, Io<F>>>::Error>
Counts the handshake, creates its session, and applies the I/O-configured timeout.