#[repr(u8)]pub enum Usb2ChrgDetectStatPlugContact {
NO_CONTACT = 0,
GOOD_CONTACT = 1,
}Variants§
NO_CONTACT = 0
The USB plug has not made contact.
GOOD_CONTACT = 1
The USB plug has made good contact.
Implementations§
Trait Implementations§
Source§impl Clone for Usb2ChrgDetectStatPlugContact
impl Clone for Usb2ChrgDetectStatPlugContact
Source§fn clone(&self) -> Usb2ChrgDetectStatPlugContact
fn clone(&self) -> Usb2ChrgDetectStatPlugContact
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 From<Usb2ChrgDetectStatPlugContact> for u8
impl From<Usb2ChrgDetectStatPlugContact> for u8
Source§fn from(val: Usb2ChrgDetectStatPlugContact) -> u8
fn from(val: Usb2ChrgDetectStatPlugContact) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Usb2ChrgDetectStatPlugContact
impl From<u8> for Usb2ChrgDetectStatPlugContact
Source§fn from(val: u8) -> Usb2ChrgDetectStatPlugContact
fn from(val: u8) -> Usb2ChrgDetectStatPlugContact
Converts to this type from the input type.
Source§impl Ord for Usb2ChrgDetectStatPlugContact
impl Ord for Usb2ChrgDetectStatPlugContact
Source§fn cmp(&self, other: &Usb2ChrgDetectStatPlugContact) -> Ordering
fn cmp(&self, other: &Usb2ChrgDetectStatPlugContact) -> 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 Usb2ChrgDetectStatPlugContact
impl PartialEq for Usb2ChrgDetectStatPlugContact
Source§fn eq(&self, other: &Usb2ChrgDetectStatPlugContact) -> bool
fn eq(&self, other: &Usb2ChrgDetectStatPlugContact) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Usb2ChrgDetectStatPlugContact
impl PartialOrd for Usb2ChrgDetectStatPlugContact
impl Copy for Usb2ChrgDetectStatPlugContact
impl Eq for Usb2ChrgDetectStatPlugContact
impl StructuralPartialEq for Usb2ChrgDetectStatPlugContact
Auto Trait Implementations§
impl Freeze for Usb2ChrgDetectStatPlugContact
impl RefUnwindSafe for Usb2ChrgDetectStatPlugContact
impl Send for Usb2ChrgDetectStatPlugContact
impl Sync for Usb2ChrgDetectStatPlugContact
impl Unpin for Usb2ChrgDetectStatPlugContact
impl UnwindSafe for Usb2ChrgDetectStatPlugContact
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