Enum xio_base_datatypes::ErrorCode
[−]
[src]
#[repr(u16)]pub enum ErrorCode { Success, Failure, MessageConstructionError, InvalidOptions, OutOfSequence, PayloadTooBig, UnknownMessage, InvalidLength, NonExistingIndex, InvalidCount, UnsupportedType, UnsupportedValue, TypeValueMismatch, InvalidOperation, ExhaustedResources, InvalidState, InsufficientPermission, ProgrammingMistake, }
Variants
Success
Failure
MessageConstructionError
InvalidOptions
OutOfSequence
PayloadTooBig
UnknownMessage
InvalidLength
NonExistingIndex
InvalidCount
UnsupportedType
UnsupportedValue
TypeValueMismatch
InvalidOperation
ExhaustedResources
InvalidState
InsufficientPermission
ProgrammingMistake
Methods
impl ErrorCode
[src]
pub fn is_success(&self) -> bool
[src]
pub fn is_error(&self) -> bool
[src]
pub fn success_or_else<F, O>(self, op: O) -> Result<(), F> where
O: FnOnce(ErrorCode) -> F,
[src]
O: FnOnce(ErrorCode) -> F,
Trait Implementations
impl Copy for ErrorCode
[src]
impl Clone for ErrorCode
[src]
fn clone(&self) -> ErrorCode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ErrorCode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for ErrorCode
[src]
fn eq(&self, __arg_0: &ErrorCode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for ErrorCode
[src]
impl PartialOrd for ErrorCode
[src]
fn partial_cmp(&self, __arg_0: &ErrorCode) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for ErrorCode
[src]
fn cmp(&self, __arg_0: &ErrorCode) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more