#[repr(u16)]
pub enum ResponseStatus {
Show 44 variants Success, WrongProviderId, ContentTypeNotSupported, AcceptTypeNotSupported, WireProtocolVersionNotSupported, ProviderNotRegistered, ProviderDoesNotExist, DeserializingBodyFailed, SerializingBodyFailed, OpcodeDoesNotExist, ResponseTooLarge, AuthenticationError, AuthenticatorDoesNotExist, AuthenticatorNotRegistered, KeyInfoManagerError, ConnectionError, InvalidEncoding, InvalidHeader, WrongProviderUuid, NotAuthenticated, BodySizeExceedsLimit, AdminOperation, DeprecatedPrimitive, 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

§

DeprecatedPrimitive

The key template contains a deprecated type or algorithm

§

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§

source§

impl Clone for ResponseStatus

source§

fn clone(&self) -> ResponseStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ResponseStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ResponseStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for ResponseStatus

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<Box<ErrorKind, Global>> for ResponseStatus

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for ResponseStatus

source§

fn from(err: Error) -> ResponseStatus

Converts to this type from the input type.
source§

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.

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for ResponseStatus

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Infallible> for ResponseStatus

source§

fn from(_err: Infallible) -> Self

Converts to this type from the input type.
source§

impl From<NulError> for ResponseStatus

source§

fn from(err: NulError) -> Self

Converts to this type from the input type.
source§

impl From<TryFromIntError> for ResponseStatus

source§

fn from(err: TryFromIntError) -> Self

Converts to this type from the input type.
source§

impl From<TryFromSliceError> for ResponseStatus

source§

fn from(err: TryFromSliceError) -> Self

Converts to this type from the input type.
source§

impl FromPrimitive for ResponseStatus

source§

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.
source§

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.
source§

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.
source§

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.
source§

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.
source§

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.
source§

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
source§

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.
source§

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.
source§

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.
source§

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.
source§

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
source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl PartialEq<ResponseStatus> for ResponseStatus

source§

fn eq(&self, other: &ResponseStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u16> for ResponseStatus

§

type Error = ResponseStatus

The type returned in the event of a conversion error.
source§

fn try_from(value: u16) -> Result<Self>

Performs the conversion.
source§

impl Copy for ResponseStatus

source§

impl Eq for ResponseStatus

source§

impl StructuralEq for ResponseStatus

source§

impl StructuralPartialEq for ResponseStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.