#[non_exhaustive]#[repr(u32)]pub enum ResultReason {
Show 22 variants
ItemNotFound = 1,
ResponseTooLarge = 2,
AuthenticationNotSuccessful = 3,
InvalidMessage = 4,
OperationNotSupported = 5,
MissingData = 6,
InvalidField = 7,
FeatureNotSupported = 8,
OperationCanceledByRequester = 9,
CryptographicFailure = 10,
IllegalOperation = 11,
PermissionDenied = 12,
ObjectArchived = 13,
IndexOutOfBounds = 14,
ApplicationNamespaceNotSupported = 15,
KeyFormatTypeNotSupported = 16,
KeyCompressionTypeNotSupported = 17,
EncodingOptionError = 18,
KeyValueNotPresent = 19,
AttestationRequired = 20,
AttestationFailed = 21,
GeneralFailure = 256,
}Expand description
See KMIP 1.0 section 6.10 Result Reason.
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.
ItemNotFound = 1
ResponseTooLarge = 2
AuthenticationNotSuccessful = 3
InvalidMessage = 4
OperationNotSupported = 5
MissingData = 6
InvalidField = 7
FeatureNotSupported = 8
OperationCanceledByRequester = 9
CryptographicFailure = 10
IllegalOperation = 11
PermissionDenied = 12
ObjectArchived = 13
IndexOutOfBounds = 14
ApplicationNamespaceNotSupported = 15
KeyFormatTypeNotSupported = 16
KeyCompressionTypeNotSupported = 17
EncodingOptionError = 18
KeyValueNotPresent = 19
AttestationRequired = 20
AttestationFailed = 21
GeneralFailure = 256
Implementations§
Source§impl ResultReason
impl ResultReason
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 ResultReason
impl Clone for ResultReason
impl Copy for ResultReason
Source§impl Debug for ResultReason
impl Debug for ResultReason
Source§impl Display for ResultReason
impl Display for ResultReason
impl Eq for ResultReason
Source§impl Ordinalize for ResultReason
impl Ordinalize for ResultReason
Source§const VARIANT_COUNT: usize = 22usize
const VARIANT_COUNT: usize = 22usize
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 ResultReason
impl PartialEq for ResultReason
impl StructuralPartialEq for ResultReason
Auto Trait Implementations§
impl Forget for ResultReason
impl Freeze for ResultReason
impl Move for ResultReason
impl RefUnwindSafe for ResultReason
impl Send for ResultReason
impl Sync for ResultReason
impl Unpin for ResultReason
impl UnsafeUnpin for ResultReason
impl UnwindSafe for ResultReason
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