Struct mls_rs::group::proposal::ProposalType
source · 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
Methods from Deref<Target = u16>§
pub const MIN: u16 = 0u16
pub const MAX: u16 = 65_535u16
pub const BITS: u32 = 16u32
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§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 for ProposalType
impl PartialOrd 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 moreimpl 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more