#[repr(u8)]pub enum UsbDeviceState {
Unpowered = 0,
Disabled = 1,
Default = 2,
Addressed = 3,
Configured = 4,
}
Expand description
The global state of the USB device.
In general class traffic is only possible in the Configured
state.
Variants§
Unpowered = 0
The USB device has no power.
Disabled = 1
The USB device is disabled.
Default = 2
The USB device has just been enabled or reset.
Addressed = 3
The USB device has received an address from the host.
Configured = 4
The USB device has been configured and is fully functional.
Trait Implementations§
Source§impl Clone for UsbDeviceState
impl Clone for UsbDeviceState
Source§fn clone(&self) -> UsbDeviceState
fn clone(&self) -> UsbDeviceState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UsbDeviceState
impl Debug for UsbDeviceState
Source§impl Format for UsbDeviceState
impl Format for UsbDeviceState
Source§impl PartialEq for UsbDeviceState
impl PartialEq for UsbDeviceState
impl Copy for UsbDeviceState
impl Eq for UsbDeviceState
impl StructuralPartialEq for UsbDeviceState
Auto Trait Implementations§
impl Freeze for UsbDeviceState
impl RefUnwindSafe for UsbDeviceState
impl Send for UsbDeviceState
impl Sync for UsbDeviceState
impl Unpin for UsbDeviceState
impl UnwindSafe for UsbDeviceState
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