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 copy 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)