Struct security_framework::secure_transport::SslProtocol
source · 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
source§fn 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 ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)