Struct hyper_rustls::acceptor::TlsAcceptor
source · pub struct TlsAcceptor<A = AddrIncoming> {
config: Arc<ServerConfig>,
acceptor: A,
}
Expand description
A TLS acceptor that can be used with hyper servers.
Fields§
§config: Arc<ServerConfig>
§acceptor: A
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) -> Self
pub fn new(config: Arc<ServerConfig>, incoming: AddrIncoming) -> Self
Creates a new TlsAcceptor
from a ServerConfig
and an AddrIncoming
.
Trait Implementations§
source§impl<A> Accept for TlsAcceptor<A>
impl<A> Accept for TlsAcceptor<A>
source§impl<C, I> From<(C, I)> for TlsAcceptor
impl<C, I> From<(C, I)> for TlsAcceptor
Auto Trait Implementations§
impl<A> Freeze for TlsAcceptor<A>where
A: Freeze,
impl<A = AddrIncoming> !RefUnwindSafe for TlsAcceptor<A>
impl<A> Send for TlsAcceptor<A>where
A: Send,
impl<A> Sync for TlsAcceptor<A>where
A: Sync,
impl<A> Unpin for TlsAcceptor<A>where
A: Unpin,
impl<A = AddrIncoming> !UnwindSafe for TlsAcceptor<A>
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