Enum embassy_usb::UsbDeviceState
source ยท #[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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)