Struct native_tls::TlsAcceptorBuilder [−][src]
A builder for TlsAcceptor
s.
Implementations
impl TlsAcceptorBuilder
[src]
pub fn min_protocol_version(
&mut self,
protocol: Option<Protocol>
) -> &mut TlsAcceptorBuilder
[src]
&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)
.
pub fn max_protocol_version(
&mut self,
protocol: Option<Protocol>
) -> &mut TlsAcceptorBuilder
[src]
&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
.
pub fn build(&self) -> Result<TlsAcceptor>
[src]
Creates a new TlsAcceptor
.
Auto Trait Implementations
impl RefUnwindSafe for TlsAcceptorBuilder
impl Send for TlsAcceptorBuilder
impl Sync for TlsAcceptorBuilder
impl Unpin for TlsAcceptorBuilder
impl UnwindSafe for TlsAcceptorBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,