Enum parsec_interface::requests::ResponseStatus
source · [−]#[repr(u16)]
pub enum ResponseStatus {
Show 43 variants
Success,
WrongProviderId,
ContentTypeNotSupported,
AcceptTypeNotSupported,
WireProtocolVersionNotSupported,
ProviderNotRegistered,
ProviderDoesNotExist,
DeserializingBodyFailed,
SerializingBodyFailed,
OpcodeDoesNotExist,
ResponseTooLarge,
AuthenticationError,
AuthenticatorDoesNotExist,
AuthenticatorNotRegistered,
KeyInfoManagerError,
ConnectionError,
InvalidEncoding,
InvalidHeader,
WrongProviderUuid,
NotAuthenticated,
BodySizeExceedsLimit,
AdminOperation,
PsaErrorGenericError,
PsaErrorNotSupported,
PsaErrorNotPermitted,
PsaErrorBufferTooSmall,
PsaErrorAlreadyExists,
PsaErrorDoesNotExist,
PsaErrorBadState,
PsaErrorInvalidArgument,
PsaErrorInsufficientMemory,
PsaErrorInsufficientStorage,
PsaErrorCommunicationFailure,
PsaErrorStorageFailure,
PsaErrorDataCorrupt,
PsaErrorDataInvalid,
PsaErrorHardwareFailure,
PsaErrorCorruptionDetected,
PsaErrorInsufficientEntropy,
PsaErrorInvalidSignature,
PsaErrorInvalidPadding,
PsaErrorInsufficientData,
PsaErrorInvalidHandle,
}
Expand description
C-like enum mapping response status options to their code.
See the status code page for a broader description of these codes.
Variants
Success
Successful operation
WrongProviderId
Requested provider ID does not match that of the backend
ContentTypeNotSupported
Requested content type is not supported by the backend
AcceptTypeNotSupported
Requested accept type is not supported by the backend
WireProtocolVersionNotSupported
Requested version is not supported by the backend
ProviderNotRegistered
No provider registered for the requested provider ID
ProviderDoesNotExist
No provider defined for requested provider ID
DeserializingBodyFailed
Failed to deserialize the body of the message
SerializingBodyFailed
Failed to serialize the body of the message
OpcodeDoesNotExist
Requested operation is not defined
ResponseTooLarge
Response size exceeds allowed limits
AuthenticationError
Authentication failed
AuthenticatorDoesNotExist
Authenticator not supported
AuthenticatorNotRegistered
Authenticator not supported
KeyInfoManagerError
Internal error in the Key Info Manager
ConnectionError
Generic input/output error
InvalidEncoding
Invalid value for this data type
InvalidHeader
Constant fields in header are invalid
WrongProviderUuid
The UUID vector needs to only contain 16 bytes
NotAuthenticated
Request did not provide a required authentication
BodySizeExceedsLimit
Request length specified in the header is above defined limit
AdminOperation
The operation requires admin privilege
PsaErrorGenericError
An error occurred that does not correspond to any defined failure cause
PsaErrorNotSupported
The requested operation or a parameter is not supported by this implementation
PsaErrorNotPermitted
The requested action is denied by a policy
PsaErrorBufferTooSmall
An output buffer is too small
PsaErrorAlreadyExists
Asking for an item that already exists
PsaErrorDoesNotExist
Asking for an item that doesn’t exist
PsaErrorBadState
The requested action cannot be performed in the current state
PsaErrorInvalidArgument
The parameters passed to the function are invalid
PsaErrorInsufficientMemory
There is not enough runtime memory
PsaErrorInsufficientStorage
There is not enough persistent storage
PsaErrorCommunicationFailure
There was a communication failure inside the implementation
PsaErrorStorageFailure
There was a storage failure that may have led to data loss
PsaErrorDataCorrupt
Stored data has been corrupted
PsaErrorDataInvalid
Data read from storage is not valid for the implementation
PsaErrorHardwareFailure
A hardware failure was detected
PsaErrorCorruptionDetected
A tampering attempt was detected
PsaErrorInsufficientEntropy
There is not enough entropy to generate random data needed for the requested action
PsaErrorInvalidSignature
The signature, MAC or hash is incorrect
PsaErrorInvalidPadding
The decrypted padding is incorrect
PsaErrorInsufficientData
Insufficient data when attempting to read from a resource
PsaErrorInvalidHandle
The key handle is not valid
Trait Implementations
sourceimpl Clone for ResponseStatus
impl Clone for ResponseStatus
sourcefn clone(&self) -> ResponseStatus
fn clone(&self) -> ResponseStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResponseStatus
impl Debug for ResponseStatus
sourceimpl Display for ResponseStatus
impl Display for ResponseStatus
sourceimpl Error for ResponseStatus
impl Error for ResponseStatus
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for ResponseStatus
impl From<Error> for ResponseStatus
Conversion from a std::io::Error to a ResponseStatus
It allows to easily return a ResponseStatus in case of error when using functions from the standard library.
sourceimpl From<Error> for ResponseStatus
impl From<Error> for ResponseStatus
sourcefn from(err: Error) -> ResponseStatus
fn from(err: Error) -> ResponseStatus
Performs the conversion.
sourceimpl From<Infallible> for ResponseStatus
impl From<Infallible> for ResponseStatus
sourcefn from(_err: Infallible) -> Self
fn from(_err: Infallible) -> Self
Performs the conversion.
sourceimpl From<NulError> for ResponseStatus
impl From<NulError> for ResponseStatus
sourceimpl From<TryFromIntError> for ResponseStatus
impl From<TryFromIntError> for ResponseStatus
sourcefn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Performs the conversion.
sourceimpl From<TryFromSliceError> for ResponseStatus
impl From<TryFromSliceError> for ResponseStatus
sourcefn from(err: TryFromSliceError) -> Self
fn from(err: TryFromSliceError) -> Self
Performs the conversion.
sourceimpl FromPrimitive for ResponseStatus
impl FromPrimitive for ResponseStatus
sourcefn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourceimpl PartialEq<ResponseStatus> for ResponseStatus
impl PartialEq<ResponseStatus> for ResponseStatus
sourceimpl TryFrom<u16> for ResponseStatus
impl TryFrom<u16> for ResponseStatus
impl Copy for ResponseStatus
impl StructuralPartialEq for ResponseStatus
Auto Trait Implementations
impl RefUnwindSafe for ResponseStatus
impl Send for ResponseStatus
impl Sync for ResponseStatus
impl Unpin for ResponseStatus
impl UnwindSafe for ResponseStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more