Enum ev3dev_lang_rust::Ev3Error[][src]

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

Custom error type for internal errors.

Variants

InternalError

Fields

msg: String

Original error message.

Internal error with error msg.

NotConnected

Fields

device: String

Corresponding device

port: Option<String>

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

No matching device found.

MultipleMatches

Fields

device: String

Corresponding device

ports: Vec<String>

Devices of the requested type were found on this ports.

More than one matching device found.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.