#[repr(u8)]pub enum OverrideMode {
None = 0,
_RESERVED_1 = 1,
VdpSourceDmSink = 2,
_RESERVED_3 = 3,
VdmSource = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
}Variants§
None = 0
No overrides, required during normal USB communication.
_RESERVED_1 = 1
VdpSourceDmSink = 2
Enable VDP_SRC and IDM_SINK.
_RESERVED_3 = 3
VdmSource = 4
Enable VDM_SRC only.
_RESERVED_5 = 5
_RESERVED_6 = 6
_RESERVED_7 = 7
Implementations§
Source§impl OverrideMode
impl OverrideMode
Trait Implementations§
Source§impl Clone for OverrideMode
impl Clone for OverrideMode
Source§fn clone(&self) -> OverrideMode
fn clone(&self) -> OverrideMode
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 OverrideMode
impl Debug for OverrideMode
Source§impl From<OverrideMode> for u8
impl From<OverrideMode> for u8
Source§fn from(val: OverrideMode) -> u8
fn from(val: OverrideMode) -> u8
Converts to this type from the input type.
Source§impl From<u8> for OverrideMode
impl From<u8> for OverrideMode
Source§fn from(val: u8) -> OverrideMode
fn from(val: u8) -> OverrideMode
Converts to this type from the input type.
Source§impl Ord for OverrideMode
impl Ord for OverrideMode
Source§fn cmp(&self, other: &OverrideMode) -> Ordering
fn cmp(&self, other: &OverrideMode) -> 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 OverrideMode
impl PartialEq for OverrideMode
Source§impl PartialOrd for OverrideMode
impl PartialOrd for OverrideMode
impl Copy for OverrideMode
impl Eq for OverrideMode
impl StructuralPartialEq for OverrideMode
Auto Trait Implementations§
impl Freeze for OverrideMode
impl RefUnwindSafe for OverrideMode
impl Send for OverrideMode
impl Sync for OverrideMode
impl Unpin for OverrideMode
impl UnwindSafe for OverrideMode
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