[][src]Enum xio_base_datatypes::ErrorCode

#[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]

Trait Implementations

impl<E> Into<Result<(), E>> for ErrorCode where
    E: From<ErrorCode>, 
[src]

impl Eq for ErrorCode[src]

impl Clone for ErrorCode[src]

impl PartialOrd<ErrorCode> for ErrorCode[src]

impl PartialEq<ErrorCode> for ErrorCode[src]

impl Ord for ErrorCode[src]

impl Copy for ErrorCode[src]

impl Debug for ErrorCode[src]

impl Display for ErrorCode[src]

impl LowerHex for ErrorCode[src]

impl UpperHex for ErrorCode[src]

impl TryFrom<u16> for ErrorCode[src]

type Err = Error

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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