pub struct TlsAcceptorBuilder { /* private fields */ }
Expand description
A builder for TlsAcceptor
s.
You can get one from TlsAcceptor::builder()
Implementations§
Source§impl TlsAcceptorBuilder
impl TlsAcceptorBuilder
Sourcepub fn min_protocol_version(
&mut self,
protocol: Option<Protocol>,
) -> &mut TlsAcceptorBuilder
pub fn min_protocol_version( &mut self, protocol: Option<Protocol>, ) -> &mut TlsAcceptorBuilder
Sets the minimum supported protocol version.
A value of None
enables support for the oldest protocols supported by the implementation.
Defaults to Some(Protocol::Tlsv10)
.
Sourcepub fn max_protocol_version(
&mut self,
protocol: Option<Protocol>,
) -> &mut TlsAcceptorBuilder
pub fn max_protocol_version( &mut self, protocol: Option<Protocol>, ) -> &mut TlsAcceptorBuilder
Sets the maximum supported protocol version.
A value of None
enables support for the newest protocols supported by the implementation.
Defaults to None
.
Sourcepub fn build(&self) -> Result<TlsAcceptor>
pub fn build(&self) -> Result<TlsAcceptor>
Creates a new TlsAcceptor
.
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes