pub enum SignalSpec {
Impulse {
amplitude: f64,
},
Sine {
frequency: f64,
amplitude: f64,
duration: f64,
},
TwoTone {
f1: f64,
f2: f64,
amplitude: f64,
duration: f64,
},
ExpSweep {
f_start: f64,
f_end: f64,
amplitude: f64,
duration: f64,
},
Silence {
duration: f64,
},
ToneBurst {
frequency: f64,
amplitude: f64,
on_ms: f64,
off_ms: f64,
repetitions: usize,
},
LevelSweep {
frequency: f64,
levels_dbvu: Vec<f64>,
duration_per_level: f64,
},
}Expand description
Signal specification from config.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SignalSpec
impl Clone for SignalSpec
Source§fn clone(&self) -> SignalSpec
fn clone(&self) -> SignalSpec
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 moreAuto Trait Implementations§
impl Freeze for SignalSpec
impl RefUnwindSafe for SignalSpec
impl Send for SignalSpec
impl Sync for SignalSpec
impl Unpin for SignalSpec
impl UnsafeUnpin for SignalSpec
impl UnwindSafe for SignalSpec
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