pub struct TlsAcceptorBuilder(pub ServerConfig);
Tuple Fields§
§0: ServerConfig
Trait Implementations§
Source§impl TlsAcceptorBuilder for TlsAcceptorBuilder
impl TlsAcceptorBuilder for TlsAcceptorBuilder
Source§type Acceptor = TlsAcceptor
type Acceptor = TlsAcceptor
Type of acceptor produced by this builder.
Source§type Underlying = ServerConfig
type Underlying = ServerConfig
Type of the underlying builder. Read more
Source§fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>
fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>
Specify ALPN protocols for negotiation. Read more
Source§fn underlying_mut(&mut self) -> &mut ServerConfig
fn underlying_mut(&mut self) -> &mut ServerConfig
Get the underlying builder. Read more
Source§fn build(self) -> Result<TlsAcceptor>
fn build(self) -> Result<TlsAcceptor>
Finish the acceptor construction.
Auto Trait Implementations§
impl Freeze for TlsAcceptorBuilder
impl !RefUnwindSafe for TlsAcceptorBuilder
impl Send for TlsAcceptorBuilder
impl Sync for TlsAcceptorBuilder
impl Unpin for TlsAcceptorBuilder
impl !UnwindSafe for TlsAcceptorBuilder
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