pub struct TlsAcceptorBuilderBox(/* private fields */);
Expand description
Dynamic version of TlsAcceptorBuilder
.
Implementations§
Source§impl TlsAcceptorBuilderBox
impl TlsAcceptorBuilderBox
Sourcepub fn type_dyn(&self) -> &'static dyn TlsAcceptorType
pub fn type_dyn(&self) -> &'static dyn TlsAcceptorType
Dynamic (without type parameter) version of the acceptor.
This function returns an acceptor type, which can be used to constructor acceptors.
Sourcepub fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>
pub fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>
Specify ALPN protocols for negotiation.
This operation returns an error if the implemenation does not support ALPN.
Whether ALPN is supported, can be queried using TlsAcceptor::SUPPORTS_ALPN
.
Sourcepub fn build(self) -> Result<TlsAcceptorBox>
pub fn build(self) -> Result<TlsAcceptorBox>
Finish the acceptor construction.
Auto Trait Implementations§
impl Freeze for TlsAcceptorBuilderBox
impl !RefUnwindSafe for TlsAcceptorBuilderBox
impl Send for TlsAcceptorBuilderBox
impl !Sync for TlsAcceptorBuilderBox
impl Unpin for TlsAcceptorBuilderBox
impl !UnwindSafe for TlsAcceptorBuilderBox
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