Enum openmls::schedule::psk::ResumptionPskUsage
source · #[repr(u8)]pub enum ResumptionPskUsage {
Application,
Reinit,
Branch,
}
Expand description
Resumption PSK usage.
// draft-ietf-mls-protocol-19
enum {
reserved(0),
application(1),
reinit(2),
branch(3),
(255)
} ResumptionPSKUsage;
Variants§
Application
Application.
Reinit
Resumption PSK used for group reinitialization.
Note: “Resumption PSKs with usage reinit
MUST NOT be used in other contexts (than reinitialization).”
Branch
Resumption PSK used for subgroup branching.
Note: “Resumption PSKs with usage branch
MUST NOT be used in other contexts (than subgroup branching).”
Trait Implementations§
source§impl Clone for ResumptionPskUsage
impl Clone for ResumptionPskUsage
source§fn clone(&self) -> ResumptionPskUsage
fn clone(&self) -> ResumptionPskUsage
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 ResumptionPskUsage
impl Debug for ResumptionPskUsage
source§impl<'de> Deserialize<'de> for ResumptionPskUsage
impl<'de> Deserialize<'de> for ResumptionPskUsage
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 Deserialize for ResumptionPskUsage
impl Deserialize for ResumptionPskUsage
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 Hash for ResumptionPskUsage
impl Hash for ResumptionPskUsage
source§impl Ord for ResumptionPskUsage
impl Ord for ResumptionPskUsage
source§fn cmp(&self, other: &ResumptionPskUsage) -> Ordering
fn cmp(&self, other: &ResumptionPskUsage) -> 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<ResumptionPskUsage> for ResumptionPskUsage
impl PartialEq<ResumptionPskUsage> for ResumptionPskUsage
source§fn eq(&self, other: &ResumptionPskUsage) -> bool
fn eq(&self, other: &ResumptionPskUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResumptionPskUsage> for ResumptionPskUsage
impl PartialOrd<ResumptionPskUsage> for ResumptionPskUsage
source§fn partial_cmp(&self, other: &ResumptionPskUsage) -> Option<Ordering>
fn partial_cmp(&self, other: &ResumptionPskUsage) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for &ResumptionPskUsage
impl Serialize for &ResumptionPskUsage
source§impl Serialize for ResumptionPskUsage
impl Serialize for ResumptionPskUsage
source§impl Serialize for ResumptionPskUsage
impl Serialize for ResumptionPskUsage
source§impl Size for &ResumptionPskUsage
impl Size for &ResumptionPskUsage
fn tls_serialized_len(&self) -> usize
source§impl Size for ResumptionPskUsage
impl Size for ResumptionPskUsage
fn tls_serialized_len(&self) -> usize
impl Copy for ResumptionPskUsage
impl Eq for ResumptionPskUsage
impl StructuralEq for ResumptionPskUsage
impl StructuralPartialEq for ResumptionPskUsage
Auto Trait Implementations§
impl RefUnwindSafe for ResumptionPskUsage
impl Send for ResumptionPskUsage
impl Sync for ResumptionPskUsage
impl Unpin for ResumptionPskUsage
impl UnwindSafe for ResumptionPskUsage
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