Struct mls_rs::identity::CredentialType
source · 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
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 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§fn eq(&self, other: &CredentialType) -> bool
fn eq(&self, other: &CredentialType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CredentialType
impl PartialOrd for CredentialType
source§fn partial_cmp(&self, other: &CredentialType) -> Option<Ordering>
fn partial_cmp(&self, other: &CredentialType) -> 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 CredentialType
impl Eq for CredentialType
impl StructuralEq for CredentialType
impl StructuralPartialEq for CredentialType
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more