Enum tockloader_proto::Error [] [src]

pub enum Error {
    UnknownCommand,
    BadArguments,
    UnsetLength,
    SetLength,
    BufferTooSmall,
}

Variants

We got a command we didn't understand.

We didn't like the arguments given with a command.

The user didn't call set_payload_len yet we got a response of unbounded length.

The user called set_payload_len yet we got a response of bounded length.

The buffer passed by the user wasn't large enough for the packet.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.