pub enum ProposalType {
Add,
Update,
Remove,
PreSharedKey,
Reinit,
ExternalInit,
GroupContextExtensions,
SelfRemove,
AppEphemeral,
Custom(u16),
}Available on 32-bit or 64-bit only.
Expand description
§MLS Proposal Types
// RFC 9420
// See IANA registry for registered values
uint16 ProposalType;| Value | Name | R | Ext | Path | Ref |
|---|---|---|---|---|---|
| 0x0000 | RESERVED | - | - | - | RFC 9420 |
| 0x0001 | add | Y | Y | N | RFC 9420 |
| 0x0002 | update | Y | N | Y | RFC 9420 |
| 0x0003 | remove | Y | Y | Y | RFC 9420 |
| 0x0004 | psk | Y | Y | N | RFC 9420 |
| 0x0005 | reinit | Y | Y | N | RFC 9420 |
| 0x0006 | external_init | Y | N | Y | RFC 9420 |
| 0x0007 | group_context_extensions | Y | Y | Y | RFC 9420 |
| 0x0A0A | GREASE | Y | - | - | RFC 9420 |
| 0x1A1A | GREASE | Y | - | - | RFC 9420 |
| 0x2A2A | GREASE | Y | - | - | RFC 9420 |
| 0x3A3A | GREASE | Y | - | - | RFC 9420 |
| 0x4A4A | GREASE | Y | - | - | RFC 9420 |
| 0x5A5A | GREASE | Y | - | - | RFC 9420 |
| 0x6A6A | GREASE | Y | - | - | RFC 9420 |
| 0x7A7A | GREASE | Y | - | - | RFC 9420 |
| 0x8A8A | GREASE | Y | - | - | RFC 9420 |
| 0x9A9A | GREASE | Y | - | - | RFC 9420 |
| 0xAAAA | GREASE | Y | - | - | RFC 9420 |
| 0xBABA | GREASE | Y | - | - | RFC 9420 |
| 0xCACA | GREASE | Y | - | - | RFC 9420 |
| 0xDADA | GREASE | Y | - | - | RFC 9420 |
| 0xEAEA | GREASE | Y | - | - | RFC 9420 |
| 0xF000 - 0xFFFF | Reserved for Private Use | - | - | - | RFC 9420 |
§Extensions
| Value | Name | Recommended | Path Required | Reference | Notes | |:=======|:==============|:============|:==============|:==========|:=============================| | 0x0009 | app_ephemeral | Y | N | RFC XXXX | draft-ietf-mls-extensions-08 | | 0x000a | self_remove | Y | Y | RFC XXXX | draft-ietf-mls-extensions-07 |
Variants§
Add
Update
Remove
Reinit
ExternalInit
GroupContextExtensions
SelfRemove
AppEphemeral
Available on crate feature
extensions-draft-08 only.Custom(u16)
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 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 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,
Available on crate feature
std only.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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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