pub enum UsbState {
Disabled,
Enabled,
Configured,
Suspended,
}Expand description
USB device lifecycle. Suspended is distinct from Configured because
the bus is enumerated but transmission is gated on remote wakeup — the
first key still needs to reach the USB writer to trigger that wakeup.
Variants§
Trait Implementations§
impl Copy for UsbState
Source§impl<'de> Deserialize<'de> for UsbState
impl<'de> Deserialize<'de> for UsbState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UsbState
Source§impl MaxSize for UsbState
impl MaxSize for UsbState
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
impl StructuralPartialEq for UsbState
Auto Trait Implementations§
impl Freeze for UsbState
impl RefUnwindSafe for UsbState
impl Send for UsbState
impl Sync for UsbState
impl Unpin for UsbState
impl UnsafeUnpin for UsbState
impl UnwindSafe for UsbState
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