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