pub struct CipherSuiteId(pub u16);Expand description
TLS cipher-suite identifier (IANA two-byte code point).
Order within a TlsProfile matters — anti-bot systems compare the
ordering against known browser fingerprints.
§Example
use stygian_browser::tls::CipherSuiteId;
let aes128 = CipherSuiteId::TLS_AES_128_GCM_SHA256;
assert_eq!(aes128.0, 0x1301);Tuple Fields§
§0: u16Implementations§
Source§impl CipherSuiteId
impl CipherSuiteId
Sourcepub const TLS_AES_128_GCM_SHA256: Self
pub const TLS_AES_128_GCM_SHA256: Self
TLS 1.3 — AES-128-GCM with SHA-256.
Sourcepub const TLS_AES_256_GCM_SHA384: Self
pub const TLS_AES_256_GCM_SHA384: Self
TLS 1.3 — AES-256-GCM with SHA-384.
Sourcepub const TLS_CHACHA20_POLY1305_SHA256: Self
pub const TLS_CHACHA20_POLY1305_SHA256: Self
TLS 1.3 — ChaCha20-Poly1305 with SHA-256.
Sourcepub const TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: Self
pub const TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: Self
TLS 1.2 — ECDHE-ECDSA-AES128-GCM-SHA256.
Sourcepub const TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: Self
pub const TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: Self
TLS 1.2 — ECDHE-RSA-AES128-GCM-SHA256.
Sourcepub const TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: Self
pub const TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: Self
TLS 1.2 — ECDHE-ECDSA-AES256-GCM-SHA384.
Sourcepub const TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: Self
pub const TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: Self
TLS 1.2 — ECDHE-RSA-AES256-GCM-SHA384.
Sourcepub const TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256: Self
pub const TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256: Self
TLS 1.2 — ECDHE-ECDSA-CHACHA20-POLY1305.
Sourcepub const TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256: Self
pub const TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256: Self
TLS 1.2 — ECDHE-RSA-CHACHA20-POLY1305.
Sourcepub const TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: Self
pub const TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: Self
TLS 1.2 — ECDHE-RSA-AES128-SHA.
Sourcepub const TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: Self
pub const TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: Self
TLS 1.2 — ECDHE-RSA-AES256-SHA.
Sourcepub const TLS_RSA_WITH_AES_128_GCM_SHA256: Self
pub const TLS_RSA_WITH_AES_128_GCM_SHA256: Self
TLS 1.2 — RSA-AES128-GCM-SHA256.
Sourcepub const TLS_RSA_WITH_AES_256_GCM_SHA384: Self
pub const TLS_RSA_WITH_AES_256_GCM_SHA384: Self
TLS 1.2 — RSA-AES256-GCM-SHA384.
Sourcepub const TLS_RSA_WITH_AES_128_CBC_SHA: Self
pub const TLS_RSA_WITH_AES_128_CBC_SHA: Self
TLS 1.2 — RSA-AES128-SHA.
Sourcepub const TLS_RSA_WITH_AES_256_CBC_SHA: Self
pub const TLS_RSA_WITH_AES_256_CBC_SHA: Self
TLS 1.2 — RSA-AES256-SHA.
Trait Implementations§
Source§impl Clone for CipherSuiteId
impl Clone for CipherSuiteId
Source§fn clone(&self) -> CipherSuiteId
fn clone(&self) -> CipherSuiteId
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 CipherSuiteId
impl Debug for CipherSuiteId
Source§impl<'de> Deserialize<'de> for CipherSuiteId
impl<'de> Deserialize<'de> for CipherSuiteId
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CipherSuiteId
impl Display for CipherSuiteId
Source§impl Hash for CipherSuiteId
impl Hash for CipherSuiteId
Source§impl PartialEq for CipherSuiteId
impl PartialEq for CipherSuiteId
Source§impl Serialize for CipherSuiteId
impl Serialize for CipherSuiteId
impl Copy for CipherSuiteId
impl Eq for CipherSuiteId
impl StructuralPartialEq for CipherSuiteId
Auto Trait Implementations§
impl Freeze for CipherSuiteId
impl RefUnwindSafe for CipherSuiteId
impl Send for CipherSuiteId
impl Sync for CipherSuiteId
impl Unpin for CipherSuiteId
impl UnsafeUnpin for CipherSuiteId
impl UnwindSafe for CipherSuiteId
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.