pub struct RustlsAcceptor { /* private fields */ }Expand description
A rustls server provider using application-supplied certificates, client-authentication policy and ALPN configuration.
Implementations§
Source§impl RustlsAcceptor
impl RustlsAcceptor
Sourcepub fn new(config: Arc<ServerConfig>) -> Self
pub fn new(config: Arc<ServerConfig>) -> Self
Share an explicitly configured rustls server configuration.
Trait Implementations§
Source§impl Clone for RustlsAcceptor
impl Clone for RustlsAcceptor
Source§impl Debug for RustlsAcceptor
impl Debug for RustlsAcceptor
Source§impl<S> TlsAcceptor<S, <S as SocketOperation>::Socket> for RustlsAcceptor
impl<S> TlsAcceptor<S, <S as SocketOperation>::Socket> for RustlsAcceptor
Source§type Connection = RustlsConnection<<S as SocketOperation>::Socket>
type Connection = RustlsConnection<<S as SocketOperation>::Socket>
A TLS connection that satisfies the configured authentication policy, with provider-specific application I/O.
Source§async fn accept(
&self,
scheduler: &S,
connection: S::Socket,
cancellation: &Cancellation,
) -> OperationResult<Self::Connection>
async fn accept( &self, scheduler: &S, connection: S::Socket, cancellation: &Cancellation, ) -> OperationResult<Self::Connection>
Consume an accepted transport and complete its server handshake. On error or cancellation, retire and close the transport before returning. Futures are lazy; pre-cancellation prevents handshake I/O. Successful progress may win concurrent cancellation. Preserve cancellation distinctly from I/O and TLS failures, and never return a plaintext fallback. Dropping a pending handshake provides ordinary destruction only, unless the provider documents a stronger guarantee.
Auto Trait Implementations§
impl !RefUnwindSafe for RustlsAcceptor
impl !UnwindSafe for RustlsAcceptor
impl Freeze for RustlsAcceptor
impl Send for RustlsAcceptor
impl Sync for RustlsAcceptor
impl Unpin for RustlsAcceptor
impl UnsafeUnpin for RustlsAcceptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more