pub struct TestAudioOptions {
pub sample_rate: u32,
pub channels: u16,
pub frequency: f64,
}Expand description
Construction-time options for TestAudioSource::new.
Fields§
§sample_rate: u32§channels: u16§frequency: f64The generated sine tone’s frequency, in Hz. 440.0 (concert pitch
A) by default — audible, easy to recognize on a scope or by ear;
nothing else is special about the exact value.
Trait Implementations§
Source§impl Clone for TestAudioOptions
impl Clone for TestAudioOptions
Source§fn clone(&self) -> TestAudioOptions
fn clone(&self) -> TestAudioOptions
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 TestAudioOptions
Source§impl Debug for TestAudioOptions
impl Debug for TestAudioOptions
Auto Trait Implementations§
impl Freeze for TestAudioOptions
impl RefUnwindSafe for TestAudioOptions
impl Send for TestAudioOptions
impl Sync for TestAudioOptions
impl Unpin for TestAudioOptions
impl UnsafeUnpin for TestAudioOptions
impl UnwindSafe for TestAudioOptions
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