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.
Fields of CrcRxBuffer
Fields of ReadRange
Fields of ExReadRange
Fields of GetAttr
key: &'a [u8] | |
value: &'a [u8] | |
Fields of CrcIntFlash
Fields of CrcExtFlash
Fields of Info
Formats the value using the given formatter.
fn eq(&self, __arg_0: &Response<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Response<'a>) -> bool
[src]
This method tests for !=
.