pub struct CredentialType(/* private fields */);
Expand description
Wrapper type representing a credential type identifier along with default values defined by the MLS RFC.
Implementations§
Source§impl CredentialType
impl CredentialType
Sourcepub const BASIC: CredentialType
pub const BASIC: CredentialType
Basic identity.
Sourcepub const X509: CredentialType
pub const X509: CredentialType
X509 Certificate Identity.
pub const fn new(raw_value: u16) -> CredentialType
pub const fn raw_value(&self) -> u16
Trait Implementations§
Source§impl Clone for CredentialType
impl Clone for CredentialType
Source§fn clone(&self) -> CredentialType
fn clone(&self) -> CredentialType
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 CredentialType
impl Debug for CredentialType
Source§impl Deref for CredentialType
impl Deref for CredentialType
Source§impl From<u16> for CredentialType
impl From<u16> for CredentialType
Source§fn from(value: u16) -> CredentialType
fn from(value: u16) -> CredentialType
Converts to this type from the input type.
Source§impl Hash for CredentialType
impl Hash for CredentialType
Source§impl MlsDecode for CredentialType
impl MlsDecode for CredentialType
fn mls_decode(reader: &mut &[u8]) -> Result<CredentialType, Error>
Source§impl MlsEncode for CredentialType
impl MlsEncode for CredentialType
Source§impl MlsSize for CredentialType
impl MlsSize for CredentialType
fn mls_encoded_len(&self) -> usize
Source§impl Ord for CredentialType
impl Ord for CredentialType
Source§fn cmp(&self, other: &CredentialType) -> Ordering
fn cmp(&self, other: &CredentialType) -> 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 CredentialType
impl PartialEq for CredentialType
Source§impl PartialOrd for CredentialType
impl PartialOrd for CredentialType
impl Copy for CredentialType
impl Eq for CredentialType
impl StructuralPartialEq for CredentialType
Auto Trait Implementations§
impl Freeze for CredentialType
impl RefUnwindSafe for CredentialType
impl Send for CredentialType
impl Sync for CredentialType
impl Unpin for CredentialType
impl UnwindSafe for CredentialType
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