pub enum ProposalType {
Add,
Update,
Remove,
PreSharedKey,
Reinit,
ExternalInit,
GroupContextExtensions,
AppAck,
SelfRemove,
Custom(u16),
}
Expand description
§MLS Proposal Types
// draft-ietf-mls-protocol-20
// See IANA registry for registered values
uint16 ProposalType;
Value | Name | R | Ext | Path | Ref |
---|---|---|---|---|---|
0x0000 | RESERVED | - | - | - | RFC XXXX |
0x0001 | add | Y | Y | N | RFC XXXX |
0x0002 | update | Y | N | Y | RFC XXXX |
0x0003 | remove | Y | Y | Y | RFC XXXX |
0x0004 | psk | Y | Y | N | RFC XXXX |
0x0005 | reinit | Y | Y | N | RFC XXXX |
0x0006 | external_init | Y | N | Y | RFC XXXX |
0x0007 | group_context_extensions | Y | Y | Y | RFC XXXX |
0x0A0A | GREASE | Y | - | - | RFC XXXX |
0x1A1A | GREASE | Y | - | - | RFC XXXX |
0x2A2A | GREASE | Y | - | - | RFC XXXX |
0x3A3A | GREASE | Y | - | - | RFC XXXX |
0x4A4A | GREASE | Y | - | - | RFC XXXX |
0x5A5A | GREASE | Y | - | - | RFC XXXX |
0x6A6A | GREASE | Y | - | - | RFC XXXX |
0x7A7A | GREASE | Y | - | - | RFC XXXX |
0x8A8A | GREASE | Y | - | - | RFC XXXX |
0x9A9A | GREASE | Y | - | - | RFC XXXX |
0xAAAA | GREASE | Y | - | - | RFC XXXX |
0xBABA | GREASE | Y | - | - | RFC XXXX |
0xCACA | GREASE | Y | - | - | RFC XXXX |
0xDADA | GREASE | Y | - | - | RFC XXXX |
0xEAEA | GREASE | Y | - | - | RFC XXXX |
0xF000 - 0xFFFF | Reserved for Private Use | - | - | - | RFC XXXX |
§Extensions
| Value | Name | Recommended | Path Required | Reference | Notes | |:=======|:========|:============|:==============|:==========|:=============================| | 0x0008 | app_ack | Y | Y | RFC XXXX | draft-ietf-mls-extensions-00 |
Variants§
Implementations§
Source§impl ProposalType
impl ProposalType
Sourcepub fn is_path_required(&self) -> bool
pub fn is_path_required(&self) -> bool
Returns true
if the proposal type requires a path and false
Trait Implementations§
Source§impl Clone for ProposalType
impl Clone for ProposalType
Source§fn clone(&self) -> ProposalType
fn clone(&self) -> ProposalType
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 ProposalType
impl Debug for ProposalType
Source§impl<'de> Deserialize<'de> for ProposalType
impl<'de> Deserialize<'de> for ProposalType
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 ProposalType
impl Deserialize for ProposalType
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>where
Self: Sized,
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>where
Self: Sized,
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for ProposalType
impl DeserializeBytes for ProposalType
Source§impl From<ProposalType> for u16
impl From<ProposalType> for u16
Source§fn from(value: ProposalType) -> Self
fn from(value: ProposalType) -> Self
Converts to this type from the input type.
Source§impl From<u16> for ProposalType
impl From<u16> for ProposalType
Source§impl Hash for ProposalType
impl Hash for ProposalType
Source§impl Ord for ProposalType
impl Ord for ProposalType
Source§fn cmp(&self, other: &ProposalType) -> Ordering
fn cmp(&self, other: &ProposalType) -> 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 ProposalType
impl PartialEq for ProposalType
Source§impl PartialOrd for ProposalType
impl PartialOrd for ProposalType
Source§impl Serialize for ProposalType
impl Serialize for ProposalType
Source§impl Serialize for ProposalType
impl Serialize for ProposalType
Source§impl Size for ProposalType
impl Size for ProposalType
fn tls_serialized_len(&self) -> usize
impl Copy for ProposalType
impl Eq for ProposalType
impl StructuralPartialEq for ProposalType
Auto Trait Implementations§
impl Freeze for ProposalType
impl RefUnwindSafe for ProposalType
impl Send for ProposalType
impl Sync for ProposalType
impl Unpin for ProposalType
impl UnwindSafe for ProposalType
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