pub struct TlsConfig { /* private fields */ }Expand description
Tls service configuration
Implementations§
Source§impl TlsConfig
impl TlsConfig
Sourcepub fn handshake_timeout(&self) -> Millis
pub fn handshake_timeout(&self) -> Millis
Get tls handshake timeout.
Sourcepub fn set_handshake_timeout<T: Into<Seconds>>(self, timeout: T) -> Self
pub fn set_handshake_timeout<T: Into<Seconds>>(self, timeout: T) -> Self
Set tls handshake timeout.
Defines a timeout for connection tls handshake negotiation. To disable timeout set value to 0.
By default handshake timeout is set to 5 seconds.
Trait Implementations§
Source§impl Configuration for TlsConfig
impl Configuration for TlsConfig
Auto Trait Implementations§
impl Freeze for TlsConfig
impl !RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl !UnwindSafe for TlsConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)