#[repr(u8)]
pub enum UsbDeviceState {
Default,
Addressed,
Configured,
Suspend,
}
The global state of the USB device.
In general class traffic is only possible in the Configured state.
The USB device has just been created or reset.
The USB device has received an address from the host.
The USB device has been configured and is fully functional.
The USB device has been suspended by the host or it has been unplugged from the USB bus.
This method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool | 1.0.0 [src] |
This method tests for !=.
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static