Enum usb_device::device::UsbDeviceState
source · [−]#[repr(u8)]
pub enum UsbDeviceState {
Default,
Addressed,
Configured,
Suspend,
}
Expand description
The global state of the USB device.
In general class traffic is only possible in the Configured
state.
Variants
Default
The USB device has just been created or reset.
Addressed
The USB device has received an address from the host.
Configured
The USB device has been configured and is fully functional.
Suspend
The USB device has been suspended by the host or it has been unplugged from the USB bus.
Trait Implementations
sourceimpl Clone for UsbDeviceState
impl Clone for UsbDeviceState
sourcefn clone(&self) -> UsbDeviceState
fn clone(&self) -> UsbDeviceState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UsbDeviceState
impl Debug for UsbDeviceState
sourceimpl PartialEq<UsbDeviceState> for UsbDeviceState
impl PartialEq<UsbDeviceState> for UsbDeviceState
sourcefn eq(&self, other: &UsbDeviceState) -> bool
fn eq(&self, other: &UsbDeviceState) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more