pub enum Status {
Show 17 variants Ok, ErrTarget, ErrFile, ErrWrite, ErrErase, ErrCheckErased, ErrProg, ErrVerify, ErrAddress, ErrNotdone, ErrFirmware, ErrVendor, ErrUsbr, ErrPor, ErrUnknown, ErrStalledpkt, Other(u8),
}
Expand description

DFU Status.

Note: not the same as state!

Variants

Ok

No error condition is present.

ErrTarget

File is not targeted for use by this device.

ErrFile

File is for this device but fails some vendor-specific verification test.

ErrWrite

Device is unable to write memory.

ErrErase

Memory erase function failed.

ErrCheckErased

Memory erase check failed.

ErrProg

Program memory function failed.

ErrVerify

Programmed memory failed verification.

ErrAddress

Cannot program memory due to received address that is out of range.

ErrNotdone

Received DFU_DNLOAD with wLength = 0, but device does not think it has all of the data yet.

ErrFirmware

Device’s firmware is corrupt. It cannot return to run-time (non-DFU) operations.

ErrVendor

iString indicates a vendor-specific error.

ErrUsbr

Device detected unexpected USB reset signaling.

ErrPor

Device detected unexpected power on reset.

ErrUnknown

Something went wrong, but the device does not know what it was.

ErrStalledpkt

Device stalled an unexpected request.

Other(u8)

Other ({0}).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.