#[repr(u8)]pub enum DfuStatus {
Show 16 variants
OK = 0,
errTARGET = 1,
errFILE = 2,
errWRITE = 3,
errERASE = 4,
errCHECK_ERASED = 5,
errPROG = 6,
errVERIFY = 7,
errADDRESS = 8,
errNOTDONE = 9,
errFIRMWARE = 10,
errVENDOR = 11,
errUSBR = 12,
errPOR = 13,
errUNKNOWN = 14,
errSTALLEDPKT = 15,
}Expand description
Status codes a DFU device can return, taken from the USB DFU 1.1 spec.
Variants§
OK = 0
errTARGET = 1
errFILE = 2
errWRITE = 3
errERASE = 4
errCHECK_ERASED = 5
errPROG = 6
errVERIFY = 7
errADDRESS = 8
errNOTDONE = 9
errFIRMWARE = 10
errVENDOR = 11
errUSBR = 12
errPOR = 13
errUNKNOWN = 14
errSTALLEDPKT = 15
Implementations§
Trait Implementations§
Source§impl TryFromPrimitive for DfuStatus
impl TryFromPrimitive for DfuStatus
impl Copy for DfuStatus
impl Eq for DfuStatus
impl StructuralPartialEq for DfuStatus
Auto Trait Implementations§
impl Freeze for DfuStatus
impl RefUnwindSafe for DfuStatus
impl Send for DfuStatus
impl Sync for DfuStatus
impl Unpin for DfuStatus
impl UnwindSafe for DfuStatus
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