Enum optee_teec::ErrorKind

source ·
#[repr(u32)]
pub enum ErrorKind {
Show 20 variants Generic = 4_294_901_760, AccessDenied = 4_294_901_761, Cancel = 4_294_901_762, AccessConflict = 4_294_901_763, ExcessData = 4_294_901_764, BadFormat = 4_294_901_765, BadParameters = 4_294_901_766, BadState = 4_294_901_767, ItemNotFound = 4_294_901_768, NotImplemented = 4_294_901_769, NotSupported = 4_294_901_770, NoData = 4_294_901_771, OutOfMemory = 4_294_901_772, Busy = 4_294_901_773, Communication = 4_294_901_774, Security = 4_294_901_775, ShortBuffer = 4_294_901_776, ExternalCancel = 4_294_901_777, TargetDead = 4_294_914_084, Unknown = 4294914085,
}
Expand description

A list specifying general categories of TEE client error and its corresponding code in OP-TEE client library.

Variants§

§

Generic = 4_294_901_760

Non-specific cause.

§

AccessDenied = 4_294_901_761

Access privileges are not sufficient.

§

Cancel = 4_294_901_762

The operation was canceled.

§

AccessConflict = 4_294_901_763

Concurrent accesses caused conflict.

§

ExcessData = 4_294_901_764

Too much data for the requested operation was passed.

§

BadFormat = 4_294_901_765

Input data was of invalid format.

§

BadParameters = 4_294_901_766

Input parameters were invalid.

§

BadState = 4_294_901_767

Operation is not valid in the current state.

§

ItemNotFound = 4_294_901_768

The requested data item is not found.

§

NotImplemented = 4_294_901_769

The requested operation should exist but is not yet implemented.

§

NotSupported = 4_294_901_770

The requested operation is valid but is not supported in this implementation.

§

NoData = 4_294_901_771

Expected data was missing.

§

OutOfMemory = 4_294_901_772

System ran out of resources.

§

Busy = 4_294_901_773

The system is busy working on something else.

§

Communication = 4_294_901_774

Communication with a remote party failed.

§

Security = 4_294_901_775

A security fault was detected.

§

ShortBuffer = 4_294_901_776

The supplied buffer is too short for the generated output.

§

ExternalCancel = 4_294_901_777

Implementation defined error code.

§

TargetDead = 4_294_914_084

Implementation defined error code: trusted Application has panicked during the operation.

§

Unknown = 4294914085

Unknown error.

Trait Implementations§

source§

impl Clone for ErrorKind

source§

fn clone(&self) -> ErrorKind

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 ErrorKind

source§

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

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

impl From<ErrorKind> for Error

source§

fn from(kind: ErrorKind) -> Error

Converts to this type from the input type.
source§

impl Hash for ErrorKind

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for ErrorKind

source§

fn cmp(&self, other: &ErrorKind) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for ErrorKind

source§

fn eq(&self, other: &ErrorKind) -> 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 PartialOrd for ErrorKind

source§

fn partial_cmp(&self, other: &ErrorKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for ErrorKind

source§

impl Eq for ErrorKind

source§

impl StructuralPartialEq for ErrorKind

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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, U> TryFrom<U> for T
where 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 T
where 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.