Enum embassy_usb::UsbDeviceState
source · #[repr(u8)]pub enum UsbDeviceState {
Unpowered,
Disabled,
Default,
Addressed,
Configured,
}
Expand description
The global state of the USB device.
In general class traffic is only possible in the Configured
state.
Variants§
Unpowered
The USB device has no power.
Disabled
The USB device is disabled.
Default
The USB device has just been enabled or reset.
Addressed
The USB device has received an address from the host.
Configured
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<UsbDeviceState> for UsbDeviceState
impl PartialEq<UsbDeviceState> for UsbDeviceState
source§fn eq(&self, other: &UsbDeviceState) -> bool
fn eq(&self, other: &UsbDeviceState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UsbDeviceState
impl Eq for UsbDeviceState
impl StructuralEq for UsbDeviceState
impl StructuralPartialEq for UsbDeviceState
Auto Trait Implementations§
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