#[repr(u8)]pub enum DischargeVbus {
VBUS_DCHG_OFF = 0,
VBUS_DCHG_ON = 1,
}Variants§
Implementations§
Source§impl DischargeVbus
impl DischargeVbus
Trait Implementations§
Source§impl Clone for DischargeVbus
impl Clone for DischargeVbus
Source§fn clone(&self) -> DischargeVbus
fn clone(&self) -> DischargeVbus
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 DischargeVbus
impl Debug for DischargeVbus
Source§impl From<DischargeVbus> for u8
impl From<DischargeVbus> for u8
Source§fn from(val: DischargeVbus) -> u8
fn from(val: DischargeVbus) -> u8
Converts to this type from the input type.
Source§impl From<u8> for DischargeVbus
impl From<u8> for DischargeVbus
Source§fn from(val: u8) -> DischargeVbus
fn from(val: u8) -> DischargeVbus
Converts to this type from the input type.
Source§impl Ord for DischargeVbus
impl Ord for DischargeVbus
Source§fn cmp(&self, other: &DischargeVbus) -> Ordering
fn cmp(&self, other: &DischargeVbus) -> 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 DischargeVbus
impl PartialEq for DischargeVbus
Source§impl PartialOrd for DischargeVbus
impl PartialOrd for DischargeVbus
impl Copy for DischargeVbus
impl Eq for DischargeVbus
impl StructuralPartialEq for DischargeVbus
Auto Trait Implementations§
impl Freeze for DischargeVbus
impl RefUnwindSafe for DischargeVbus
impl Send for DischargeVbus
impl Sync for DischargeVbus
impl Unpin for DischargeVbus
impl UnwindSafe for DischargeVbus
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