Struct tls_api::TlsAcceptorBuilderBox
source · [−]pub struct TlsAcceptorBuilderBox(_);
Expand description
Dynamic version of TlsAcceptorBuilder
.
Implementations
sourceimpl 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 !RefUnwindSafe for TlsAcceptorBuilderBox
impl Send for TlsAcceptorBuilderBox
impl !Sync for TlsAcceptorBuilderBox
impl Unpin for TlsAcceptorBuilderBox
impl !UnwindSafe for TlsAcceptorBuilderBox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more