pub struct ProposalType(/* private fields */);Implementations§
Source§impl ProposalType
impl ProposalType
pub const SPEC_RESERVED: u16
pub const ADD: u16
pub const UPDATE: u16
pub const REMOVE: u16
pub const PSK: u16
pub const REINIT: u16
pub const EXTERNAL_INIT: u16
pub const GROUP_CONTEXT_EXTENSIONS: u16
pub const APP_DATA_UPDATE: u16
Available on crate feature
draft-ietf-mls-extensions only.pub const APP_EPHEMERAL: u16
Available on crate feature
draft-ietf-mls-extensions only.pub const SELF_REMOVE: u16
Available on crate feature
draft-ietf-mls-extensions only.Source§impl ProposalType
impl ProposalType
pub fn all_without_spec_default() -> Vec<Self>
pub const fn new_unchecked(value: u16) -> Self
pub fn new_private_use(value: u16) -> MlsSpecResult<Self>
pub const fn is_spec_default(&self) -> bool
pub fn is_grease_value(&self) -> bool
Source§impl ProposalType
impl ProposalType
pub fn is_allowed_in_external_proposals(&self) -> bool
pub fn needs_update_path(&self) -> bool
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 Deref for ProposalType
impl Deref 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>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
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 Display for ProposalType
impl Display for ProposalType
Source§impl From<&Proposal> for ProposalType
impl From<&Proposal> 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 Serialize for ProposalType
impl Serialize for ProposalType
Source§impl Size for &ProposalType
impl Size for &ProposalType
fn tls_serialized_len(&self) -> usize
Source§impl Size for ProposalType
impl Size for ProposalType
fn tls_serialized_len(&self) -> usize
Source§impl TryFrom<u16> for ProposalType
impl TryFrom<u16> 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 UnsafeUnpin 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<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