Enum tockloader_proto::Response [] [src]

pub enum Response<'a> {
    Overflow,
    Pong,
    BadAddress,
    InternalError,
    BadArguments,
    Ok,
    Unknown,
    ExtFlashTimeout,
    ExtFlashPageError,
    CrcRxBuffer {
        length: u16,
        crc: u32,
    },
    ReadRange {
        data: &'a [u8],
    },
    ExReadRange {
        data: &'a [u8],
    },
    GetAttr {
        key: &'a [u8],
        value: &'a [u8],
    },
    CrcIntFlash {
        crc: u32,
    },
    CrcExtFlash {
        crc: u32,
    },
    Info {
        info: &'a [u8],
    },
    ChangeBaudFail,
}

Reponses supported by the protocol. A bootloader will encode these and a flash tool will decode them.

Variants

Fields of CrcRxBuffer

Fields of ReadRange

Fields of ExReadRange

Fields of GetAttr

Fields of CrcIntFlash

Fields of CrcExtFlash

Fields of Info

Trait Implementations

impl<'a> Debug for Response<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Response<'a>
[src]

[src]

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

[src]

This method tests for !=.