#[repr(u8)]pub enum ResumptionPskUsage {
Application = 1,
Reinit = 2,
Branch = 3,
}
Expand description
Resumption PSK usage.
// draft-ietf-mls-protocol-19
enum {
reserved(0),
application(1),
reinit(2),
branch(3),
(255)
} ResumptionPSKUsage;
Variants§
Application = 1
Application.
Reinit = 2
Resumption PSK used for group reinitialization.
Note: “Resumption PSKs with usage reinit
MUST NOT be used in other contexts (than reinitialization).”
Branch = 3
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 DeserializeBytes for ResumptionPskUsage
impl DeserializeBytes for ResumptionPskUsage
Source§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 for ResumptionPskUsage
impl PartialEq for ResumptionPskUsage
Source§impl PartialOrd for ResumptionPskUsage
impl PartialOrd for ResumptionPskUsage
Source§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 StructuralPartialEq for ResumptionPskUsage
Auto Trait Implementations§
impl Freeze for ResumptionPskUsage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more