pub enum State {
    AppIdle,
    AppDetach,
    DfuIdle,
    DfuUnloadSync,
    DfuDnbusy,
    DfuDnloadIdle,
    DfuManifestSync,
    DfuManifest,
    DfuManifestWaitReset,
    DfuUploadIdle,
    DfuError,
    Other(u8),
}
Expand description

DFU State.

Note: not the same as status!

Variants

AppIdle

Device is running its normal application.

AppDetach

Device is running its normal application, has received the DFU_DETACH request, and is waiting for a USB reset.

DfuIdle

Device is operating in the DFU mode and is waiting for requests.

DfuUnloadSync

Device has received a block and is waiting for the host to solicit the status via DFU_GETSTATUS.

DfuDnbusy

Device is programming a control-write block into its nonvolatile memories.

DfuDnloadIdle

Device is processing a download operation. Expecting DFU_DNLOAD requests.

DfuManifestSync

Device has received the final block of firmware from the host and is waiting for receipt of DFU_GETSTATUS to begin the Manifestation phase; or device has completed the Manifestation phase and is waiting for receipt of DFU_GETSTATUS. (Devices that can enter this state after the Manifestation phase set bmAttributes bit bitManifestationTolerant to 1.)

DfuManifest

Device is in the Manifestation phase. (Not all devices will be able to respond to DFU_GETSTATUS when in this state.)

DfuManifestWaitReset

Device has programmed its memories and is waiting for a USB reset or a power on reset. (Devices that must enter this state clear bitManifestationTolerant to 0.)

DfuUploadIdle

The device is processing an upload operation. Expecting DFU_UPLOAD requests.

DfuError

An error has occurred. Awaiting the DFU_CLRSTATUS 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.