#[repr(u16)]pub enum CredentialType {
Basic = 1,
X509 = 2,
Other(u16),
}
Expand description
CredentialType.
This enum contains variants for the different Credential Types.
// See IANA registry for registered values
uint16 CredentialType;
IANA Considerations
Value | Name | R | Ref |
---|---|---|---|
0x0000 | RESERVED | - | RFC XXXX |
0x0001 | basic | Y | RFC XXXX |
0x0002 | x509 | Y | RFC XXXX |
0x0A0A | GREASE | Y | RFC XXXX |
0x1A1A | GREASE | Y | RFC XXXX |
0x2A2A | GREASE | Y | RFC XXXX |
0x3A3A | GREASE | Y | RFC XXXX |
0x4A4A | GREASE | Y | RFC XXXX |
0x5A5A | GREASE | Y | RFC XXXX |
0x6A6A | GREASE | Y | RFC XXXX |
0x7A7A | GREASE | Y | RFC XXXX |
0x8A8A | GREASE | Y | RFC XXXX |
0x9A9A | GREASE | Y | RFC XXXX |
0xAAAA | GREASE | Y | RFC XXXX |
0xBABA | GREASE | Y | RFC XXXX |
0xCACA | GREASE | Y | RFC XXXX |
0xDADA | GREASE | Y | RFC XXXX |
0xEAEA | GREASE | Y | RFC XXXX |
0xF000 - 0xFFFF | Reserved for Private Use | - | RFC XXXX |
Variants§
Basic = 1
X509 = 2
An X.509 Certificate
Other(u16)
Another type of credential that is not in the MLS protocol spec.
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<'de> Deserialize<'de> for CredentialType
impl<'de> Deserialize<'de> for CredentialType
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 CredentialType
impl Deserialize for CredentialType
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>where
Self: Sized,
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>where
Self: Sized,
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for CredentialType
impl DeserializeBytes for CredentialType
Source§impl From<CredentialType> for u16
impl From<CredentialType> for u16
Source§fn from(value: CredentialType) -> Self
fn from(value: CredentialType) -> Self
Converts to this type from the input type.
Source§impl From<u16> for CredentialType
impl From<u16> for CredentialType
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
Source§impl Serialize for CredentialType
impl Serialize for CredentialType
Source§impl Serialize for CredentialType
impl Serialize for CredentialType
Source§impl Size for CredentialType
impl Size for CredentialType
fn tls_serialized_len(&self) -> usize
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<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