pub enum DeviceState {
Default,
Addressed,
Configured,
Suspend,
}Expand description
High-level USB device state.
Variants§
Default
Just created or reset — default address (0).
Addressed
Address assigned, not yet configured.
Configured
Fully configured — data transfers are permitted.
Suspend
Suspended by the host.
Trait Implementations§
Source§impl Clone for DeviceState
impl Clone for DeviceState
impl Copy for DeviceState
Source§impl Debug for DeviceState
impl Debug for DeviceState
impl Eq for DeviceState
Source§impl Format for DeviceState
impl Format for DeviceState
Source§impl PartialEq for DeviceState
impl PartialEq for DeviceState
impl StructuralPartialEq for DeviceState
Auto Trait Implementations§
impl Forget for DeviceState
impl Freeze for DeviceState
impl Move for DeviceState
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnsafeUnpin for DeviceState
impl UnwindSafe for DeviceState
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