Enum Anasubmode
#[repr(u8)]pub enum Anasubmode {
Disable = 0,
RpDefaultUsb = 1,
Rp1_5a = 2,
Rp3_0a = 3,
}Variants§
Disable = 0
Disabled (sink mode, or no Rp in source mode)
RpDefaultUsb = 1
Source mode, default USB Rp
Rp1_5a = 2
Source mode, 1.5A Rp
Rp3_0a = 3
Source mode, 3.0A Rp
Implementations§
§impl Anasubmode
impl Anasubmode
pub const fn from_bits(val: u8) -> Anasubmode
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Anasubmode
impl Clone for Anasubmode
§fn clone(&self) -> Anasubmode
fn clone(&self) -> Anasubmode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Anasubmode
impl Eq for Anasubmode
§impl From<Anasubmode> for u8
impl From<Anasubmode> for u8
§fn from(val: Anasubmode) -> u8
fn from(val: Anasubmode) -> u8
Converts to this type from the input type.
§impl From<u8> for Anasubmode
impl From<u8> for Anasubmode
§fn from(val: u8) -> Anasubmode
fn from(val: u8) -> Anasubmode
Converts to this type from the input type.
§impl Ord for Anasubmode
impl Ord for Anasubmode
§fn cmp(&self, other: &Anasubmode) -> Ordering
fn cmp(&self, other: &Anasubmode) -> Ordering
1.21.0 (const: unstable) · 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
§impl PartialEq for Anasubmode
impl PartialEq for Anasubmode
§impl PartialOrd for Anasubmode
impl PartialOrd for Anasubmode
impl StructuralPartialEq for Anasubmode
Auto Trait Implementations§
impl Freeze for Anasubmode
impl RefUnwindSafe for Anasubmode
impl Send for Anasubmode
impl Sync for Anasubmode
impl Unpin for Anasubmode
impl UnsafeUnpin for Anasubmode
impl UnwindSafe for Anasubmode
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