pub struct CiphersuiteId(/* private fields */);
Implementations§
Source§impl CiphersuiteId
impl CiphersuiteId
pub const SPEC_RESERVED: u16 = 0u16
pub const MLS_128_DHKEMX25519_AES128GCM_SHA256_ED25519: u16 = 1u16
pub const MLS_128_DHKEMP256_AES128GCM_SHA256_P256: u16 = 2u16
pub const MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_ED25519: u16 = 3u16
pub const MLS_256_DHKEMX448_AES256GCM_SHA512_ED448: u16 = 4u16
pub const MLS_256_DHKEMP521_AES256GCM_SHA512_P521: u16 = 5u16
pub const MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_ED448: u16 = 6u16
pub const MLS_256_DHKEMP384_AES256GCM_SHA384_P384: u16 = 7u16
Source§impl CiphersuiteId
impl CiphersuiteId
pub fn all_without_spec_default() -> Vec<Self>
pub const fn new_unchecked(value: u16) -> Self
pub fn new_private_use(value: u16) -> MlsSpecResult<Self>
pub const fn is_spec_default(&self) -> bool
pub fn is_grease_value(&self) -> bool
Trait Implementations§
Source§impl Clone for CiphersuiteId
impl Clone for CiphersuiteId
Source§fn clone(&self) -> CiphersuiteId
fn clone(&self) -> CiphersuiteId
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 CiphersuiteId
impl Debug for CiphersuiteId
Source§impl Default for CiphersuiteId
impl Default for CiphersuiteId
Source§impl Deref for CiphersuiteId
impl Deref for CiphersuiteId
Source§impl Deserialize for CiphersuiteId
impl Deserialize for CiphersuiteId
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl Display for CiphersuiteId
impl Display for CiphersuiteId
Source§impl Hash for CiphersuiteId
impl Hash for CiphersuiteId
Source§impl Ord for CiphersuiteId
impl Ord for CiphersuiteId
Source§fn cmp(&self, other: &CiphersuiteId) -> Ordering
fn cmp(&self, other: &CiphersuiteId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CiphersuiteId
impl PartialEq for CiphersuiteId
Source§impl PartialOrd for CiphersuiteId
impl PartialOrd for CiphersuiteId
Source§impl Serialize for &CiphersuiteId
impl Serialize for &CiphersuiteId
Source§impl Serialize for CiphersuiteId
impl Serialize for CiphersuiteId
Source§impl Size for &CiphersuiteId
impl Size for &CiphersuiteId
fn tls_serialized_len(&self) -> usize
Source§impl Size for CiphersuiteId
impl Size for CiphersuiteId
fn tls_serialized_len(&self) -> usize
Source§impl TryFrom<u16> for CiphersuiteId
impl TryFrom<u16> 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 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