#[non_exhaustive]pub enum SupportedCipherSuite {
Tls12(&'static Tls12CipherSuite),
Tls13(&'static Tls13CipherSuite),
}
Expand description
A cipher suite supported by rustls.
This type carries both configuration and implementation. Compare with
CipherSuite
, which carries solely a cipher suite identifier.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tls12(&'static Tls12CipherSuite)
A TLS 1.2 cipher suite
Tls13(&'static Tls13CipherSuite)
A TLS 1.3 cipher suite
Implementations§
Source§impl SupportedCipherSuite
impl SupportedCipherSuite
Sourcepub fn suite(&self) -> CipherSuite
pub fn suite(&self) -> CipherSuite
The cipher suite’s identifier
Trait Implementations§
Source§impl Clone for SupportedCipherSuite
impl Clone for SupportedCipherSuite
Source§fn clone(&self) -> SupportedCipherSuite
fn clone(&self) -> SupportedCipherSuite
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 SupportedCipherSuite
impl Debug for SupportedCipherSuite
Source§impl From<&'static Tls12CipherSuite> for SupportedCipherSuite
impl From<&'static Tls12CipherSuite> for SupportedCipherSuite
Source§fn from(s: &'static Tls12CipherSuite) -> Self
fn from(s: &'static Tls12CipherSuite) -> Self
Converts to this type from the input type.
Source§impl From<&'static Tls13CipherSuite> for SupportedCipherSuite
impl From<&'static Tls13CipherSuite> for SupportedCipherSuite
Source§fn from(s: &'static Tls13CipherSuite) -> Self
fn from(s: &'static Tls13CipherSuite) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SupportedCipherSuite
impl PartialEq for SupportedCipherSuite
impl Copy for SupportedCipherSuite
impl StructuralPartialEq for SupportedCipherSuite
Auto Trait Implementations§
impl Freeze for SupportedCipherSuite
impl !RefUnwindSafe for SupportedCipherSuite
impl Send for SupportedCipherSuite
impl Sync for SupportedCipherSuite
impl Unpin for SupportedCipherSuite
impl !UnwindSafe for SupportedCipherSuite
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