pub struct WaveformConfig(/* private fields */);Implementations§
Source§impl WaveformConfig
impl WaveformConfig
pub fn new( format: Format, channels: u32, sample_rate: u32, waveform_type: WaveformType, amplitude: f64, frequency: f64, ) -> WaveformConfig
pub fn format(&self) -> Format
pub fn set_format(&mut self, format: Format)
pub fn channels(&self) -> u32
pub fn set_channels(&mut self, channels: u32)
pub fn sample_rate(&self) -> u32
pub fn set_sample_rate(&mut self, sample_rate: u32)
pub fn waveform_type(&self) -> WaveformType
pub fn amplitude(&self) -> f64
pub fn set_amplitude(&mut self, amplitude: f64)
pub fn frequency(&self) -> f64
pub fn set_frequency(&mut self, frequency: f64)
Trait Implementations§
Source§impl Clone for WaveformConfig
impl Clone for WaveformConfig
Source§fn clone(&self) -> WaveformConfig
fn clone(&self) -> WaveformConfig
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 moreAuto Trait Implementations§
impl Freeze for WaveformConfig
impl RefUnwindSafe for WaveformConfig
impl Send for WaveformConfig
impl Sync for WaveformConfig
impl Unpin for WaveformConfig
impl UnwindSafe for WaveformConfig
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