pub struct ProposalType(/* private fields */);
Expand description
Wrapper type representing a proposal type identifier along with default values defined by the MLS RFC.
Implementations§
Source§impl ProposalType
impl ProposalType
Source§impl ProposalType
impl ProposalType
pub const ADD: ProposalType
pub const UPDATE: ProposalType
pub const REMOVE: ProposalType
pub const PSK: ProposalType
pub const RE_INIT: ProposalType
pub const EXTERNAL_INIT: ProposalType
pub const GROUP_CONTEXT_EXTENSIONS: ProposalType
Sourcepub const DEFAULT: &'static [ProposalType]
pub const DEFAULT: &'static [ProposalType]
Default proposal types defined in RFC 9420
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 Deref for ProposalType
impl Deref for ProposalType
Source§impl From<ProposalType> for u16
impl From<ProposalType> for u16
Source§fn from(value: ProposalType) -> u16
fn from(value: ProposalType) -> u16
Converts to this type from the input type.
Source§impl From<u16> for ProposalType
impl From<u16> for ProposalType
Source§fn from(value: u16) -> ProposalType
fn from(value: u16) -> ProposalType
Converts to this type from the input type.
Source§impl Hash for ProposalType
impl Hash for ProposalType
Source§impl MlsDecode for ProposalType
impl MlsDecode for ProposalType
fn mls_decode(reader: &mut &[u8]) -> Result<ProposalType, Error>
Source§impl MlsEncode for ProposalType
impl MlsEncode for ProposalType
Source§impl MlsSize for ProposalType
impl MlsSize for ProposalType
fn mls_encoded_len(&self) -> usize
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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