#[repr(u8)]pub enum VbusPathSelectionControl {
ControlledByNvbusenPin = 0,
ForcedOpen = 1,
}
Variants§
ControlledByNvbusenPin = 0
Path controlled by N_VBUSEN pin.
ForcedOpen = 1
Path forced open (ignores N_VBUSEN).
Trait Implementations§
Source§impl Clone for VbusPathSelectionControl
impl Clone for VbusPathSelectionControl
Source§fn clone(&self) -> VbusPathSelectionControl
fn clone(&self) -> VbusPathSelectionControl
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 VbusPathSelectionControl
impl Debug for VbusPathSelectionControl
Source§impl From<VbusPathSelectionControl> for u8
impl From<VbusPathSelectionControl> for u8
Source§fn from(val: VbusPathSelectionControl) -> Self
fn from(val: VbusPathSelectionControl) -> Self
Converts to this type from the input type.
Source§impl Hash for VbusPathSelectionControl
impl Hash for VbusPathSelectionControl
Source§impl PartialEq for VbusPathSelectionControl
impl PartialEq for VbusPathSelectionControl
Source§impl TryFrom<u8> for VbusPathSelectionControl
impl TryFrom<u8> for VbusPathSelectionControl
impl Copy for VbusPathSelectionControl
impl Eq for VbusPathSelectionControl
impl StructuralPartialEq for VbusPathSelectionControl
Auto Trait Implementations§
impl Freeze for VbusPathSelectionControl
impl RefUnwindSafe for VbusPathSelectionControl
impl Send for VbusPathSelectionControl
impl Sync for VbusPathSelectionControl
impl Unpin for VbusPathSelectionControl
impl UnwindSafe for VbusPathSelectionControl
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