#[repr(u8)]pub enum PlugContact {
PLUG_CONTACT_0 = 0,
PLUG_CONTACT_1 = 1,
}Variants§
PLUG_CONTACT_0 = 0
No USB cable attachment has been detected
PLUG_CONTACT_1 = 1
A USB cable attachment between the device and host has been detected
Implementations§
Source§impl PlugContact
impl PlugContact
Trait Implementations§
Source§impl Clone for PlugContact
impl Clone for PlugContact
Source§fn clone(&self) -> PlugContact
fn clone(&self) -> PlugContact
Returns a duplicate 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 PlugContact
impl Debug for PlugContact
Source§impl From<PlugContact> for u8
impl From<PlugContact> for u8
Source§fn from(val: PlugContact) -> u8
fn from(val: PlugContact) -> u8
Converts to this type from the input type.
Source§impl From<u8> for PlugContact
impl From<u8> for PlugContact
Source§fn from(val: u8) -> PlugContact
fn from(val: u8) -> PlugContact
Converts to this type from the input type.
Source§impl Ord for PlugContact
impl Ord for PlugContact
Source§fn cmp(&self, other: &PlugContact) -> Ordering
fn cmp(&self, other: &PlugContact) -> Ordering
1.21.0 · 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 PartialEq for PlugContact
impl PartialEq for PlugContact
Source§impl PartialOrd for PlugContact
impl PartialOrd for PlugContact
impl Copy for PlugContact
impl Eq for PlugContact
impl StructuralPartialEq for PlugContact
Auto Trait Implementations§
impl Freeze for PlugContact
impl RefUnwindSafe for PlugContact
impl Send for PlugContact
impl Sync for PlugContact
impl Unpin for PlugContact
impl UnwindSafe for PlugContact
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