[][src]Enum xio_common::Error

pub enum Error {
    Timeout {
        backtrace: Backtrace,
    },
    ChannelSenderDisconnected {
        backtrace: Backtrace,
    },
    Broadcast {
        source: Error,
    },
    ThreadCreation {
        source: Error,
        backtrace: Backtrace,
    },
    SerialPort {
        source: Error,
        backtrace: Backtrace,
    },
    UnexpectedResponseType {
        backtrace: Backtrace,
    },
    ProgrammerError {
        backtrace: Backtrace,
    },
    Xio {
        error_code: ErrorCode,
        backtrace: Backtrace,
    },
    Io {
        source: Error,
        backtrace: Backtrace,
    },
    XioSequenceError {
        expected: u8,
        received: u8,
        request: Request,
        response: Response,
        backtrace: Backtrace,
    },
    InvalidPayloadLength {
        message_type: &'static str,
        received: usize,
        required: usize,
        backtrace: Backtrace,
    },
    UnknownCommandId {
        command_id: u16,
        backtrace: Backtrace,
    },
    UnmatchedResponse {
        request: Request,
        response: Response,
        backtrace: Backtrace,
    },
    Utf8Conversion {
        source: FromUtf8Error,
    },
    InvalidJobParametersPayload {
        parameter_index: u16,
        backtrace: Backtrace,
    },
}

Variants

Timeout

Fields of Timeout

backtrace: Backtrace
ChannelSenderDisconnected

Fields of ChannelSenderDisconnected

backtrace: Backtrace
Broadcast

Fields of Broadcast

source: Error
ThreadCreation

Fields of ThreadCreation

source: Errorbacktrace: Backtrace
SerialPort

Fields of SerialPort

source: Errorbacktrace: Backtrace
UnexpectedResponseType

Fields of UnexpectedResponseType

backtrace: Backtrace
ProgrammerError

Fields of ProgrammerError

backtrace: Backtrace
Xio

Fields of Xio

error_code: ErrorCodebacktrace: Backtrace
Io

Fields of Io

source: Errorbacktrace: Backtrace
XioSequenceError

Fields of XioSequenceError

expected: u8received: u8request: Requestresponse: Responsebacktrace: Backtrace
InvalidPayloadLength

Fields of InvalidPayloadLength

message_type: &'static strreceived: usizerequired: usizebacktrace: Backtrace
UnknownCommandId

Fields of UnknownCommandId

command_id: u16backtrace: Backtrace
UnmatchedResponse

Fields of UnmatchedResponse

request: Requestresponse: Responsebacktrace: Backtrace
Utf8Conversion

Fields of Utf8Conversion

source: FromUtf8Error
InvalidJobParametersPayload

Fields of InvalidJobParametersPayload

parameter_index: u16backtrace: Backtrace

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error where
    Self: Debug + Display
[src]

impl ErrorCompat for Error[src]

Auto Trait Implementations

impl Send for Error

impl Unpin for Error

impl Sync for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

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<T> AsErrorSource for T where
    T: 'static + Error
[src]

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

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