#[non_exhaustive]#[repr(u16)]pub enum CipherSuiteId {
TlsAes128GcmSha256 = 275,
TlsAes256GcmSha384 = 531,
TlsChaCha20Poly1305Sha256 = 787,
TlsAes128CcmSha256 = 1_043,
TlsAes128Ccm8Sha256 = 1_299,
}Expand description
A TLS 1.3 cipher suite.
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.
TlsAes128GcmSha256 = 275
TLS_AES_128_GCM_SHA256
TlsAes256GcmSha384 = 531
TLS_AES_256_GCM_SHA384
TlsChaCha20Poly1305Sha256 = 787
TLS_CHACHA20_POLY1305_SHA256
TlsAes128CcmSha256 = 1_043
TLS_AES_128_CCM_SHA256
TlsAes128Ccm8Sha256 = 1_299
TLS_AES_128_CCM_8_SHA256
Implementations§
Source§impl CipherSuiteId
impl CipherSuiteId
Sourcepub const fn all() -> &'static [CipherSuiteId]
pub const fn all() -> &'static [CipherSuiteId]
Returns all of the cipher suites.
Sourcepub const fn to_bytes(self) -> [u8; 2]
pub const fn to_bytes(self) -> [u8; 2]
Converts the cipher suite to its (big endian) byte representation.
Sourcepub const fn try_from_bytes(bytes: [u8; 2]) -> Option<CipherSuiteId>
pub const fn try_from_bytes(bytes: [u8; 2]) -> Option<CipherSuiteId>
Attempts to create a cipher suite from its (big endian) byte representation.
It returns None if bytes is not a valid cipher suite.
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<CipherSuiteId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CipherSuiteId, <__D as Deserializer<'de>>::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 IntoBytes for CipherSuiteId
impl IntoBytes for CipherSuiteId
Source§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§fn write_to_prefix(
&self,
dst: &mut [u8],
) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to_prefix(
&self,
dst: &mut [u8],
) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for CipherSuiteIdwhere
CipherSuiteId: Sized,
impl KnownLayout for CipherSuiteIdwhere
CipherSuiteId: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
The type of metadata stored in a pointer to
Self. Read moreSource§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Computes the size of an object of type
Self with the given pointer
metadata. Read moreSource§impl PartialEq for CipherSuiteId
impl PartialEq for CipherSuiteId
Source§impl Serialize for CipherSuiteId
impl Serialize for CipherSuiteId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CipherSuiteId
impl Eq for CipherSuiteId
impl Immutable 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 UnwindSafe for CipherSuiteId
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.