#[repr(u8)]pub enum ForceNeedclk {
NORMAL = 0,
ALWAYS_ON = 1,
}Variants§
NORMAL = 0
USB_NEEDCLK has normal function.
ALWAYS_ON = 1
USB_NEEDCLK always 1. Clock will not be stopped in case of suspend.
Implementations§
Source§impl ForceNeedclk
impl ForceNeedclk
Trait Implementations§
Source§impl Clone for ForceNeedclk
impl Clone for ForceNeedclk
Source§fn clone(&self) -> ForceNeedclk
fn clone(&self) -> ForceNeedclk
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 ForceNeedclk
impl Debug for ForceNeedclk
Source§impl From<ForceNeedclk> for u8
impl From<ForceNeedclk> for u8
Source§fn from(val: ForceNeedclk) -> u8
fn from(val: ForceNeedclk) -> u8
Converts to this type from the input type.
Source§impl From<u8> for ForceNeedclk
impl From<u8> for ForceNeedclk
Source§fn from(val: u8) -> ForceNeedclk
fn from(val: u8) -> ForceNeedclk
Converts to this type from the input type.
Source§impl Ord for ForceNeedclk
impl Ord for ForceNeedclk
Source§fn cmp(&self, other: &ForceNeedclk) -> Ordering
fn cmp(&self, other: &ForceNeedclk) -> 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 ForceNeedclk
impl PartialEq for ForceNeedclk
Source§impl PartialOrd for ForceNeedclk
impl PartialOrd for ForceNeedclk
impl Copy for ForceNeedclk
impl Eq for ForceNeedclk
impl StructuralPartialEq for ForceNeedclk
Auto Trait Implementations§
impl Freeze for ForceNeedclk
impl RefUnwindSafe for ForceNeedclk
impl Send for ForceNeedclk
impl Sync for ForceNeedclk
impl Unpin for ForceNeedclk
impl UnwindSafe for ForceNeedclk
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