pub enum PsaResultCode {
Success,
InvalidArgument,
NotPermitted,
InvalidHandle,
BufferTooSmall,
NotSupported,
InvalidSignature,
GenericError,
}Expand description
Enumerates normalized PSA status classes used by the public adapter layer.
Variants§
Success
The operation completed successfully.
InvalidArgument
A supplied argument or encoded payload is invalid.
NotPermitted
The requested operation is not permitted by key policy.
InvalidHandle
The key handle is unknown or no longer valid.
BufferTooSmall
Operation failed because output or input buffer sizes are insufficient.
NotSupported
Operation failed due to capability not present in the target backend.
InvalidSignature
Signature, MAC, or decrypt checks failed.
GenericError
A generic backend failure was returned.
Trait Implementations§
Source§impl Clone for PsaResultCode
impl Clone for PsaResultCode
Source§fn clone(&self) -> PsaResultCode
fn clone(&self) -> PsaResultCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PsaResultCode
impl Debug for PsaResultCode
Source§impl PartialEq for PsaResultCode
impl PartialEq for PsaResultCode
Source§fn eq(&self, other: &PsaResultCode) -> bool
fn eq(&self, other: &PsaResultCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PsaResultCode
impl Eq for PsaResultCode
impl StructuralPartialEq for PsaResultCode
Auto Trait Implementations§
impl Freeze for PsaResultCode
impl RefUnwindSafe for PsaResultCode
impl Send for PsaResultCode
impl Sync for PsaResultCode
impl Unpin for PsaResultCode
impl UnsafeUnpin for PsaResultCode
impl UnwindSafe for PsaResultCode
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