Enum ev3dev_lang_rust::Ev3Error[][src]

pub enum Ev3Error {
    InternalError {
        msg: String,
    },
    NotConnected {
        device: String,
        port: Option<String>,
    },
    MultipleMatches {
        device: String,
        ports: Vec<String>,
    },
}

Custom error type for internal errors.

Variants

InternalError

Internal error with error msg.

Fields of InternalError

msg: String

Original error message.

NotConnected

No matching device found.

Fields of NotConnected

device: String

Corresponding device

port: Option<String>

Device was expected to be on this port (None if no port was specified)

MultipleMatches

More than one matching device found.

Fields of MultipleMatches

device: String

Corresponding device

ports: Vec<String>

Devices of the requested type were found on this ports.

Trait Implementations

impl Debug for Ev3Error[src]

impl From<Error> for Ev3Error[src]

impl From<FromUtf8Error> for Ev3Error[src]

impl From<ParseIntError> for Ev3Error[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.