#[non_exhaustive]#[repr(u32)]pub enum KeyFormatType {
Show 19 variants
Raw = 1,
Opaque = 2,
PKCS1 = 3,
PKCS8 = 4,
X509 = 5,
ECPrivateKey = 6,
TransparentSymmetricKey = 7,
TransparentDSAPrivateKey = 8,
TransparentDSAPublicKey = 9,
TransparentRSAPrivateKey = 10,
TransparentRSAPublicKey = 11,
TransparentDHPrivateKey = 12,
TransparentDHPublicKey = 13,
TransparentECDSAPrivateKey = 14,
TransparentECDSAPublicKey = 15,
TransparentECHDPrivateKey = 16,
TransparentECDHPublicKey = 17,
TransparentECMQVPrivateKey = 18,
TransparentECMQVPublicKey = 19,
}Expand description
See KMIP 1.0 section 9.1.3.2.3 Key Format 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.
Raw = 1
Opaque = 2
PKCS1 = 3
PKCS8 = 4
X509 = 5
ECPrivateKey = 6
TransparentSymmetricKey = 7
TransparentDSAPrivateKey = 8
TransparentDSAPublicKey = 9
TransparentRSAPrivateKey = 10
TransparentRSAPublicKey = 11
TransparentDHPrivateKey = 12
TransparentDHPublicKey = 13
TransparentECDSAPrivateKey = 14
TransparentECDSAPublicKey = 15
TransparentECHDPrivateKey = 16
TransparentECDHPublicKey = 17
TransparentECMQVPrivateKey = 18
TransparentECMQVPublicKey = 19
Implementations§
Source§impl KeyFormatType
impl KeyFormatType
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 KeyFormatType
impl Clone for KeyFormatType
impl Copy for KeyFormatType
Source§impl Debug for KeyFormatType
impl Debug for KeyFormatType
Source§impl Display for KeyFormatType
impl Display for KeyFormatType
impl Eq for KeyFormatType
Source§impl Ordinalize for KeyFormatType
impl Ordinalize for KeyFormatType
Source§const VARIANT_COUNT: usize = 19usize
const VARIANT_COUNT: usize = 19usize
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 KeyFormatType
impl PartialEq for KeyFormatType
impl StructuralPartialEq for KeyFormatType
Auto Trait Implementations§
impl Forget for KeyFormatType
impl Freeze for KeyFormatType
impl RefUnwindSafe for KeyFormatType
impl Send for KeyFormatType
impl Sync for KeyFormatType
impl Unpin for KeyFormatType
impl UnsafeUnpin for KeyFormatType
impl UnwindSafe for KeyFormatType
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