Enum xio_common::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 Display for ErrorCode
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more