Struct security_framework::secure_transport::SslProtocol
source · [−]pub struct SslProtocol(_);
Expand description
Specifies protocol versions.
Implementations
sourceimpl 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
sourceimpl Clone for SslProtocol
impl Clone for SslProtocol
sourcefn clone(&self) -> SslProtocol
fn clone(&self) -> SslProtocol
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SslProtocol
impl Debug for SslProtocol
sourceimpl PartialEq<SslProtocol> for SslProtocol
impl PartialEq<SslProtocol> for SslProtocol
sourcefn eq(&self, other: &SslProtocol) -> bool
fn eq(&self, other: &SslProtocol) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SslProtocol) -> bool
fn ne(&self, other: &SslProtocol) -> bool
This method tests for !=
.
impl Copy for SslProtocol
impl Eq for SslProtocol
impl StructuralEq for SslProtocol
impl StructuralPartialEq for SslProtocol
Auto Trait Implementations
impl RefUnwindSafe for SslProtocol
impl Send for SslProtocol
impl Sync for SslProtocol
impl Unpin for SslProtocol
impl UnwindSafe for SslProtocol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more