Enum openmls::messages::proposals::ProposalType
source · pub enum ProposalType {
Add,
Update,
Remove,
PreSharedKey,
Reinit,
ExternalInit,
GroupContextExtensions,
AppAck,
Unknown(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_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Check whether a proposal type is supported or not. Returns true
if a proposal is supported and false
otherwise.
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 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 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<ProposalType> for ProposalType
impl PartialEq<ProposalType> for ProposalType
source§fn eq(&self, other: &ProposalType) -> bool
fn eq(&self, other: &ProposalType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ProposalType> for ProposalType
impl PartialOrd<ProposalType> for ProposalType
source§fn partial_cmp(&self, other: &ProposalType) -> Option<Ordering>
fn partial_cmp(&self, other: &ProposalType) -> 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 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 StructuralEq for ProposalType
impl StructuralPartialEq for ProposalType
Auto Trait Implementations§
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