pub struct SslProtocol(/* private fields */);
Expand description
Specifies protocol versions.
Implementations§
Source§impl SslProtocol
impl SslProtocol
Sourcepub const UNKNOWN: Self
pub const UNKNOWN: Self
No protocol has been or should be negotiated or specified; use the default.
Sourcepub const SSL3: Self
pub const SSL3: Self
The SSL 3.0 protocol is preferred, though SSL 2.0 may be used if the peer does not support SSL 3.0.
Sourcepub const TLS1: Self
pub const TLS1: Self
The TLS 1.0 protocol is preferred, though lower versions may be used if the peer does not support TLS 1.0.
Sourcepub const TLS11: Self
pub const TLS11: Self
The TLS 1.1 protocol is preferred, though lower versions may be used if the peer does not support TLS 1.1.
Sourcepub const TLS12: Self
pub const TLS12: Self
The TLS 1.2 protocol is preferred, though lower versions may be used if the peer does not support TLS 1.2.
Trait Implementations§
Source§impl Clone for SslProtocol
impl Clone for SslProtocol
Source§fn clone(&self) -> SslProtocol
fn clone(&self) -> SslProtocol
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SslProtocol
impl Debug for SslProtocol
Source§impl PartialEq for SslProtocol
impl PartialEq for SslProtocol
impl Copy for SslProtocol
impl Eq for SslProtocol
impl StructuralPartialEq for SslProtocol
Auto Trait Implementations§
impl Freeze for SslProtocol
impl RefUnwindSafe for SslProtocol
impl Send for SslProtocol
impl Sync for SslProtocol
impl Unpin for SslProtocol
impl UnwindSafe for SslProtocol
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