[][src]Enum parsec_interface::requests::ResponseStatus

#[repr(u16)]pub enum ResponseStatus {
    Success,
    WrongProviderID,
    ContentTypeNotSupported,
    AcceptTypeNotSupported,
    WireProtocolVersionNotSupported,
    ProviderNotRegistered,
    ProviderDoesNotExist,
    DeserializingBodyFailed,
    SerializingBodyFailed,
    OpcodeDoesNotExist,
    ResponseTooLarge,
    AuthenticationError,
    AuthenticatorDoesNotExist,
    AuthenticatorNotRegistered,
    KeyInfoManagerError,
    ConnectionError,
    InvalidEncoding,
    InvalidHeader,
    WrongProviderUuid,
    NotAuthenticated,
    BodySizeExceedsLimit,
    PsaErrorGenericError,
    PsaErrorNotSupported,
    PsaErrorNotPermitted,
    PsaErrorBufferTooSmall,
    PsaErrorAlreadyExists,
    PsaErrorDoesNotExist,
    PsaErrorBadState,
    PsaErrorInvalidArgument,
    PsaErrorInsufficientMemory,
    PsaErrorInsufficientStorage,
    PsaErrorCommunicationFailure,
    PsaErrorStorageFailure,
    PsaErrorDataCorrupt,
    PsaErrorDataInvalid,
    PsaErrorHardwareFailure,
    PsaErrorCorruptionDetected,
    PsaErrorInsufficientEntropy,
    PsaErrorInvalidSignature,
    PsaErrorInvalidPadding,
    PsaErrorInsufficientData,
    PsaErrorInvalidHandle,
}

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

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

impl Clone for ResponseStatus[src]

impl Copy for ResponseStatus[src]

impl Debug for ResponseStatus[src]

impl Display for ResponseStatus[src]

impl Error for ResponseStatus[src]

impl From<Box<ErrorKind>> for ResponseStatus[src]

impl From<Error> for ResponseStatus[src]

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.

impl From<Error> for ResponseStatus[src]

impl From<Infallible> for ResponseStatus[src]

impl From<TryFromIntError> for ResponseStatus[src]

impl FromPrimitive for ResponseStatus[src]

impl PartialEq<ResponseStatus> for ResponseStatus[src]

impl StructuralPartialEq for ResponseStatus[src]

impl TryFrom<u16> for ResponseStatus[src]

type Error = ResponseStatus

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.