pub struct BeepConfig { /* private fields */ }Expand description
Beep configuration This struct is used to configure the beep tone of the CS43L22 It contains the pitch, on time, off time, mode, mix and volume
Implementations§
Source§impl BeepConfig
impl BeepConfig
Sourcepub fn on_time(self, on_time: BeepOnTime) -> Self
pub fn on_time(self, on_time: BeepOnTime) -> Self
Set the on time
Sourcepub fn off_time(self, off_time: BeepOffTime) -> Self
pub fn off_time(self, off_time: BeepOffTime) -> Self
Set the off time
Trait Implementations§
Source§impl Clone for BeepConfig
impl Clone for BeepConfig
Source§fn clone(&self) -> BeepConfig
fn clone(&self) -> BeepConfig
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 BeepConfig
Source§impl Debug for BeepConfig
impl Debug for BeepConfig
Source§impl Default for BeepConfig
impl Default for BeepConfig
Source§impl PartialEq for BeepConfig
impl PartialEq for BeepConfig
Source§fn eq(&self, other: &BeepConfig) -> bool
fn eq(&self, other: &BeepConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BeepConfig
Auto Trait Implementations§
impl Freeze for BeepConfig
impl RefUnwindSafe for BeepConfig
impl Send for BeepConfig
impl Sync for BeepConfig
impl Unpin for BeepConfig
impl UnsafeUnpin for BeepConfig
impl UnwindSafe for BeepConfig
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