Enum SamplerateMode
#[repr(u8)]pub enum SamplerateMode {
Task = 0,
Timers = 1,
}Variants§
Task = 0
Rate is controlled from SAMPLE task.
Timers = 1
Rate is controlled from local timer (use CC to control the rate).
Implementations§
§impl SamplerateMode
impl SamplerateMode
pub const fn from_bits(val: u8) -> SamplerateMode
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for SamplerateMode
impl Clone for SamplerateMode
§fn clone(&self) -> SamplerateMode
fn clone(&self) -> SamplerateMode
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 SamplerateMode
§impl Debug for SamplerateMode
impl Debug for SamplerateMode
impl Eq for SamplerateMode
§impl From<u8> for SamplerateMode
impl From<u8> for SamplerateMode
§fn from(val: u8) -> SamplerateMode
fn from(val: u8) -> SamplerateMode
Converts to this type from the input type.
§impl Ord for SamplerateMode
impl Ord for SamplerateMode
§fn cmp(&self, other: &SamplerateMode) -> Ordering
fn cmp(&self, other: &SamplerateMode) -> 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 SamplerateMode
impl PartialEq for SamplerateMode
§impl PartialOrd for SamplerateMode
impl PartialOrd for SamplerateMode
impl StructuralPartialEq for SamplerateMode
Auto Trait Implementations§
impl Freeze for SamplerateMode
impl RefUnwindSafe for SamplerateMode
impl Send for SamplerateMode
impl Sync for SamplerateMode
impl Unpin for SamplerateMode
impl UnsafeUnpin for SamplerateMode
impl UnwindSafe for SamplerateMode
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