#[non_exhaustive]#[repr(u32)]pub enum Operation {
Show 41 variants
Create = 1,
CreateKeyPair = 2,
Register = 3,
Rekey = 4,
DeriveKey = 5,
Certify = 6,
Recertify = 7,
Locate = 8,
Check = 9,
Get = 10,
GetAttributes = 11,
GetAttributeList = 12,
AddAttribute = 13,
ModifyAttribute = 14,
DeleteAttribute = 15,
ObtainLease = 16,
GetUsageAllocation = 17,
Activate = 18,
Revoke = 19,
Destroy = 20,
Archive = 21,
Recover = 22,
Validate = 23,
Query = 24,
Cancel = 25,
Poll = 26,
Notify = 27,
Put = 28,
RekeyKeyPair = 29,
DiscoverVersions = 30,
Encrypt = 31,
Decrypt = 32,
Sign = 33,
SignatureVerify = 34,
MAC = 35,
MACVerify = 36,
RNGRetrieve = 37,
RNGSeed = 38,
Hash = 39,
CreateSplitKey = 40,
JoinSplitKey = 41,
}Expand description
See KMIP 1.0 section 9.1.3.2.26 Operation 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.
Create = 1
CreateKeyPair = 2
Register = 3
Rekey = 4
DeriveKey = 5
Certify = 6
Recertify = 7
Locate = 8
Check = 9
Get = 10
GetAttributes = 11
GetAttributeList = 12
AddAttribute = 13
ModifyAttribute = 14
DeleteAttribute = 15
ObtainLease = 16
GetUsageAllocation = 17
Activate = 18
Revoke = 19
Destroy = 20
Archive = 21
Recover = 22
Validate = 23
Query = 24
Cancel = 25
Poll = 26
Notify = 27
Put = 28
RekeyKeyPair = 29
DiscoverVersions = 30
Encrypt = 31
Decrypt = 32
Sign = 33
SignatureVerify = 34
MAC = 35
MACVerify = 36
RNGRetrieve = 37
RNGSeed = 38
Hash = 39
CreateSplitKey = 40
JoinSplitKey = 41
Implementations§
Source§impl Operation
impl Operation
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§
impl Copy for Operation
impl Eq for Operation
Source§impl Ordinalize for Operation
impl Ordinalize for Operation
Source§const VARIANT_COUNT: usize = 41usize
const VARIANT_COUNT: usize = 41usize
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.
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Forget for Operation
impl Freeze for Operation
impl Move for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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