pub struct ExtensionType(/* private fields */);
Expand description
Wrapper type representing an extension identifier along with default values defined by the MLS RFC.
Implementations§
Source§impl ExtensionType
impl ExtensionType
pub const APPLICATION_ID: ExtensionType
pub const RATCHET_TREE: ExtensionType
pub const REQUIRED_CAPABILITIES: ExtensionType
pub const EXTERNAL_PUB: ExtensionType
pub const EXTERNAL_SENDERS: ExtensionType
Sourcepub const DEFAULT: &'static [ExtensionType]
pub const DEFAULT: &'static [ExtensionType]
Default extension types defined in RFC 9420
Sourcepub const fn new(raw_value: u16) -> ExtensionType
pub const fn new(raw_value: u16) -> ExtensionType
Extension type from a raw value
Sourcepub const fn is_default(&self) -> bool
pub const fn is_default(&self) -> bool
Determines if this extension type is required to be implemented by the MLS RFC.
Trait Implementations§
Source§impl Clone for ExtensionType
impl Clone for ExtensionType
Source§fn clone(&self) -> ExtensionType
fn clone(&self) -> ExtensionType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExtensionType
impl Debug for ExtensionType
Source§impl Deref for ExtensionType
impl Deref for ExtensionType
Source§impl From<u16> for ExtensionType
impl From<u16> for ExtensionType
Source§fn from(value: u16) -> ExtensionType
fn from(value: u16) -> ExtensionType
Converts to this type from the input type.
Source§impl Hash for ExtensionType
impl Hash for ExtensionType
Source§impl MlsDecode for ExtensionType
impl MlsDecode for ExtensionType
fn mls_decode(reader: &mut &[u8]) -> Result<ExtensionType, Error>
Source§impl MlsEncode for ExtensionType
impl MlsEncode for ExtensionType
Source§impl MlsSize for ExtensionType
impl MlsSize for ExtensionType
fn mls_encoded_len(&self) -> usize
Source§impl Ord for ExtensionType
impl Ord for ExtensionType
Source§fn cmp(&self, other: &ExtensionType) -> Ordering
fn cmp(&self, other: &ExtensionType) -> 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 ExtensionType
impl PartialEq for ExtensionType
Source§impl PartialOrd for ExtensionType
impl PartialOrd for ExtensionType
impl Copy for ExtensionType
impl Eq for ExtensionType
impl StructuralPartialEq for ExtensionType
Auto Trait Implementations§
impl Freeze for ExtensionType
impl RefUnwindSafe for ExtensionType
impl Send for ExtensionType
impl Sync for ExtensionType
impl Unpin for ExtensionType
impl UnwindSafe for ExtensionType
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