#[repr(u8)]pub enum Usb1VbusDetectSetVbusSourceSel {
VALUE0 = 0,
VALUE1 = 1,
VALUE2 = 2,
_RESERVED_3 = 3,
}Variants§
VALUE0 = 0
Use the VBUS_VALID comparator results for signal reported to the USB controller (Default)
VALUE1 = 1
Use the Session Valid comparator results for signal reported to the USB controller
VALUE2 = 2
Use the Session Valid comparator results for signal reported to the USB controller
_RESERVED_3 = 3
Implementations§
Trait Implementations§
Source§impl Clone for Usb1VbusDetectSetVbusSourceSel
impl Clone for Usb1VbusDetectSetVbusSourceSel
Source§fn clone(&self) -> Usb1VbusDetectSetVbusSourceSel
fn clone(&self) -> Usb1VbusDetectSetVbusSourceSel
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<Usb1VbusDetectSetVbusSourceSel> for u8
impl From<Usb1VbusDetectSetVbusSourceSel> for u8
Source§fn from(val: Usb1VbusDetectSetVbusSourceSel) -> u8
fn from(val: Usb1VbusDetectSetVbusSourceSel) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Usb1VbusDetectSetVbusSourceSel
impl From<u8> for Usb1VbusDetectSetVbusSourceSel
Source§fn from(val: u8) -> Usb1VbusDetectSetVbusSourceSel
fn from(val: u8) -> Usb1VbusDetectSetVbusSourceSel
Converts to this type from the input type.
Source§impl Ord for Usb1VbusDetectSetVbusSourceSel
impl Ord for Usb1VbusDetectSetVbusSourceSel
Source§fn cmp(&self, other: &Usb1VbusDetectSetVbusSourceSel) -> Ordering
fn cmp(&self, other: &Usb1VbusDetectSetVbusSourceSel) -> 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 Usb1VbusDetectSetVbusSourceSel
impl PartialEq for Usb1VbusDetectSetVbusSourceSel
Source§fn eq(&self, other: &Usb1VbusDetectSetVbusSourceSel) -> bool
fn eq(&self, other: &Usb1VbusDetectSetVbusSourceSel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Usb1VbusDetectSetVbusSourceSel
impl PartialOrd for Usb1VbusDetectSetVbusSourceSel
impl Copy for Usb1VbusDetectSetVbusSourceSel
impl Eq for Usb1VbusDetectSetVbusSourceSel
impl StructuralPartialEq for Usb1VbusDetectSetVbusSourceSel
Auto Trait Implementations§
impl Freeze for Usb1VbusDetectSetVbusSourceSel
impl RefUnwindSafe for Usb1VbusDetectSetVbusSourceSel
impl Send for Usb1VbusDetectSetVbusSourceSel
impl Sync for Usb1VbusDetectSetVbusSourceSel
impl Unpin for Usb1VbusDetectSetVbusSourceSel
impl UnwindSafe for Usb1VbusDetectSetVbusSourceSel
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