pub enum Response<'a> {
Show 17 variants
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,
}
Expand description
Reponses supported by the protocol. A bootloader will encode these and a flash tool will decode them.
Variants§
Overflow
Pong
BadAddress
InternalError
BadArguments
Ok
Unknown
ExtFlashTimeout
ExtFlashPageError
CrcRxBuffer
ReadRange
ExReadRange
GetAttr
CrcIntFlash
CrcExtFlash
Info
ChangeBaudFail
Trait Implementations§
impl<'a> StructuralPartialEq for Response<'a>
Auto Trait Implementations§
impl<'a> Freeze for Response<'a>
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnwindSafe for Response<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more