pub struct TlsSettings {
pub certificate: PathBuf,
pub key: PathBuf,
pub min_version: TlsVersion,
pub max_version: TlsVersion,
pub handshake_timeout: Duration,
pub maximum_pending_handshakes: usize,
}Expand description
Where the certificate and its key live, and how patient the listener is.
Fields§
§certificate: PathBufPEM, leaf first, followed by any intermediates.
key: PathBufPEM, PKCS#8, PKCS#1, or SEC1.
min_version: TlsVersionLowest accepted TCP TLS version.
max_version: TlsVersionHighest accepted TCP TLS version. QUIC ignores these TCP bounds.
handshake_timeout: DurationBounds a connection that completes TCP and then stalls mid-handshake.
maximum_pending_handshakes: usizeCaps handshakes in flight at once, which is what stops a flood from growing the task set without bound.
Trait Implementations§
Source§impl Clone for TlsSettings
impl Clone for TlsSettings
Source§impl Debug for TlsSettings
impl Debug for TlsSettings
Source§impl Default for TlsSettings
impl Default for TlsSettings
impl Eq for TlsSettings
Source§impl PartialEq for TlsSettings
impl PartialEq for TlsSettings
impl StructuralPartialEq for TlsSettings
Auto Trait Implementations§
impl Forget for TlsSettings
impl Freeze for TlsSettings
impl Move for TlsSettings
impl RefUnwindSafe for TlsSettings
impl Send for TlsSettings
impl Sync for TlsSettings
impl Unpin for TlsSettings
impl UnsafeUnpin for TlsSettings
impl UnwindSafe for TlsSettings
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