Struct hyper_rustls::TlsAcceptor
source · pub struct TlsAcceptor { /* private fields */ }
Expand description
A TLS acceptor that can be used with hyper servers.
Implementations§
source§impl TlsAcceptor
impl TlsAcceptor
An Acceptor for the https
scheme.
sourcepub fn builder() -> AcceptorBuilder<WantsTlsConfig>
pub fn builder() -> AcceptorBuilder<WantsTlsConfig>
Provides a builder for a TlsAcceptor
.
sourcepub fn new(config: Arc<ServerConfig>, incoming: AddrIncoming) -> TlsAcceptor
pub fn new(config: Arc<ServerConfig>, incoming: AddrIncoming) -> TlsAcceptor
Creates a new TlsAcceptor
from a ServerConfig
and an AddrIncoming
.
Trait Implementations§
source§impl Accept for TlsAcceptor
impl Accept for TlsAcceptor
source§impl<C, I> From<(C, I)> for TlsAcceptorwhere
C: Into<Arc<ServerConfig>>,
I: Into<AddrIncoming>,
impl<C, I> From<(C, I)> for TlsAcceptorwhere C: Into<Arc<ServerConfig>>, I: Into<AddrIncoming>,
source§fn from((config, incoming): (C, I)) -> TlsAcceptor
fn from((config, incoming): (C, I)) -> TlsAcceptor
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TlsAcceptor
impl Send for TlsAcceptor
impl Sync for TlsAcceptor
impl Unpin for TlsAcceptor
impl !UnwindSafe for TlsAcceptor
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