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;
ValueNameRExtPathRef
0x0000RESERVED---RFC XXXX
0x0001addYYNRFC XXXX
0x0002updateYNYRFC XXXX
0x0003removeYYYRFC XXXX
0x0004pskYYNRFC XXXX
0x0005reinitYYNRFC XXXX
0x0006external_initYNYRFC XXXX
0x0007group_context_extensionsYYYRFC XXXX
0x0A0AGREASEY--RFC XXXX
0x1A1AGREASEY--RFC XXXX
0x2A2AGREASEY--RFC XXXX
0x3A3AGREASEY--RFC XXXX
0x4A4AGREASEY--RFC XXXX
0x5A5AGREASEY--RFC XXXX
0x6A6AGREASEY--RFC XXXX
0x7A7AGREASEY--RFC XXXX
0x8A8AGREASEY--RFC XXXX
0x9A9AGREASEY--RFC XXXX
0xAAAAGREASEY--RFC XXXX
0xBABAGREASEY--RFC XXXX
0xCACAGREASEY--RFC XXXX
0xDADAGREASEY--RFC XXXX
0xEAEAGREASEY--RFC XXXX
0xF000 - 0xFFFFReserved 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§

§

Add

§

Update

§

Remove

§

PreSharedKey

§

Reinit

§

ExternalInit

§

GroupContextExtensions

§

AppAck

§

Unknown(u16)

Implementations§

source§

impl ProposalType

source

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.

source

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

source§

fn clone(&self) -> ProposalType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ProposalType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ProposalType

source§

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

source§

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 more
source§

fn tls_deserialize_exact(bytes: impl AsRef<[u8]>) -> Result<Self, Error>where Self: Sized,

This function deserializes the provided bytes and returns the populated struct. All bytes must be consumed. Read more
source§

fn tls_deserialize_bytes(bytes: impl AsRef<[u8]>) -> Result<Self, Error>where Self: Sized,

This function deserializes the provided bytes and returns the populated struct. Read more
source§

impl From<ProposalType> for u16

source§

fn from(value: ProposalType) -> Self

Converts to this type from the input type.
source§

impl From<u16> for ProposalType

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl Ord for ProposalType

source§

fn cmp(&self, other: &ProposalType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<ProposalType> for ProposalType

source§

fn eq(&self, other: &ProposalType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<ProposalType> for ProposalType

source§

fn partial_cmp(&self, other: &ProposalType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for ProposalType

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serialize for ProposalType

source§

fn tls_serialize<W: Write>(&self, writer: &mut W) -> Result<usize, Error>

Serialize self and write it to the writer. The function returns the number of bytes written to writer.
source§

fn tls_serialize_detached(&self) -> Result<Vec<u8, Global>, Error>

Serialize self and return it as a byte vector.
source§

impl Size for ProposalType

source§

impl Copy for ProposalType

source§

impl Eq for ProposalType

source§

impl StructuralEq for ProposalType

source§

impl StructuralPartialEq for ProposalType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,