Enum rocket::config::CipherSuite
source · #[non_exhaustive]
pub enum CipherSuite {
TLS_CHACHA20_POLY1305_SHA256,
TLS_AES_256_GCM_SHA384,
TLS_AES_128_GCM_SHA256,
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
}
tls
only.Expand description
A supported TLS cipher suite.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TLS_CHACHA20_POLY1305_SHA256
The TLS 1.3 TLS_CHACHA20_POLY1305_SHA256
cipher suite.
TLS_AES_256_GCM_SHA384
The TLS 1.3 TLS_AES_256_GCM_SHA384
cipher suite.
TLS_AES_128_GCM_SHA256
The TLS 1.3 TLS_AES_128_GCM_SHA256
cipher suite.
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
The TLS 1.2 TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
cipher suite.
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
The TLS 1.2 TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
cipher suite.
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
The TLS 1.2 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
cipher suite.
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
The TLS 1.2 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
cipher suite.
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
The TLS 1.2 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
cipher suite.
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
The TLS 1.2 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
cipher suite.
Implementations§
source§impl CipherSuite
impl CipherSuite
sourcepub const DEFAULT_SET: [CipherSuite; 9] = _
pub const DEFAULT_SET: [CipherSuite; 9] = _
The default set and order of cipher suites. These are all of the
variants in CipherSuite
in their declaration order.
sourcepub const TLS_V13_SET: [CipherSuite; 3] = _
pub const TLS_V13_SET: [CipherSuite; 3] = _
The default set and order of cipher suites. These are the TLS 1.3
variants in CipherSuite
in their declaration order.
sourcepub const TLS_V12_SET: [CipherSuite; 6] = _
pub const TLS_V12_SET: [CipherSuite; 6] = _
The default set and order of cipher suites. These are the TLS 1.2
variants in CipherSuite
in their declaration order.
Trait Implementations§
source§impl Clone for CipherSuite
impl Clone for CipherSuite
source§fn clone(&self) -> CipherSuite
fn clone(&self) -> CipherSuite
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CipherSuite
impl Debug for CipherSuite
source§impl<'de> Deserialize<'de> for CipherSuite
impl<'de> Deserialize<'de> for CipherSuite
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Hash for CipherSuite
impl Hash for CipherSuite
source§impl PartialEq<CipherSuite> for CipherSuite
impl PartialEq<CipherSuite> for CipherSuite
source§fn eq(&self, other: &CipherSuite) -> bool
fn eq(&self, other: &CipherSuite) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CipherSuite
impl Serialize for CipherSuite
impl Copy for CipherSuite
impl Eq for CipherSuite
impl StructuralEq for CipherSuite
impl StructuralPartialEq for CipherSuite
Auto Trait Implementations§
impl RefUnwindSafe for CipherSuite
impl Send for CipherSuite
impl Sync for CipherSuite
impl Unpin for CipherSuite
impl UnwindSafe for CipherSuite
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.