#[non_exhaustive]pub enum UdcState {
NotAttached,
Attached,
Powered,
Reconnecting,
Unauthenticated,
Default,
Addressed,
Configured,
Suspended,
Unknown,
}Expand description
USB device controller (UDC) connection state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotAttached
Not attached.
Attached
Attached.
Powered
Powered.
Reconnecting
Reconnecting.
Unauthenticated
Unauthenticated.
Default
Default.
Addressed
Addressed.
Configured
Configured.
Suspended
Suspended.
Unknown
Unknown state.
Trait Implementations§
impl Copy for UdcState
impl Eq for UdcState
Source§impl Ord for UdcState
impl Ord for UdcState
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for UdcState
impl PartialOrd for UdcState
impl StructuralPartialEq for UdcState
Auto Trait Implementations§
impl Freeze for UdcState
impl RefUnwindSafe for UdcState
impl Send for UdcState
impl Sync for UdcState
impl Unpin for UdcState
impl UnsafeUnpin for UdcState
impl UnwindSafe for UdcState
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