#[non_exhaustive]#[repr(u32)]pub enum KeyRoleType {
Show 21 variants
BDK = 1,
CVK = 2,
DEK = 3,
MKAC = 4,
MKSMC = 5,
MKSMI = 6,
MKDAC = 7,
MKDN = 8,
MKCP = 9,
MKOTH = 10,
KEK = 11,
MAC16609 = 12,
MAC97971 = 13,
MAC97972 = 14,
MAC97973 = 15,
MAC97974 = 16,
MAC97975 = 17,
ZPK = 18,
PVKIBM = 19,
PVKPVV = 20,
PVKOTH = 21,
}Expand description
See KMIP 1.0 section 9.1.3.2.15 Key Role Type Enumeration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BDK = 1
CVK = 2
DEK = 3
MKAC = 4
MKSMC = 5
MKSMI = 6
MKDAC = 7
MKDN = 8
MKCP = 9
MKOTH = 10
KEK = 11
MAC16609 = 12
MAC97971 = 13
MAC97972 = 14
MAC97973 = 15
MAC97974 = 16
MAC97975 = 17
ZPK = 18
PVKIBM = 19
PVKPVV = 20
PVKOTH = 21
Implementations§
Source§impl KeyRoleType
impl KeyRoleType
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for KeyRoleType
impl Clone for KeyRoleType
impl Copy for KeyRoleType
Source§impl Debug for KeyRoleType
impl Debug for KeyRoleType
Source§impl Display for KeyRoleType
impl Display for KeyRoleType
impl Eq for KeyRoleType
Source§impl Ordinalize for KeyRoleType
impl Ordinalize for KeyRoleType
Source§const VARIANT_COUNT: usize = 21usize
const VARIANT_COUNT: usize = 21usize
The count of variants.
Source§type VariantType = u32
type VariantType = u32
The type of the values of the variants.
Source§unsafe fn from_ordinal_unsafe(number: u32) -> Self
unsafe fn from_ordinal_unsafe(number: u32) -> Self
Obtain a variant based on an integer number. Read more
Source§fn from_ordinal(number: u32) -> Option<Self>
fn from_ordinal(number: u32) -> Option<Self>
Obtain a variant based on an integer number.
Source§impl PartialEq for KeyRoleType
impl PartialEq for KeyRoleType
impl StructuralPartialEq for KeyRoleType
Auto Trait Implementations§
impl Forget for KeyRoleType
impl Freeze for KeyRoleType
impl Move for KeyRoleType
impl RefUnwindSafe for KeyRoleType
impl Send for KeyRoleType
impl Sync for KeyRoleType
impl Unpin for KeyRoleType
impl UnsafeUnpin for KeyRoleType
impl UnwindSafe for KeyRoleType
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