pub enum SineMessage {
SetFrequency(f32),
SetAmplitude(f32),
}Expand description
Messages to control a Sine oscillator.
Send these via Handle::send to change parameters at runtime.
Variants§
Trait Implementations§
Source§impl Clone for SineMessage
impl Clone for SineMessage
Source§fn clone(&self) -> SineMessage
fn clone(&self) -> SineMessage
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 moreSource§impl Debug for SineMessage
impl Debug for SineMessage
impl Copy for SineMessage
Auto Trait Implementations§
impl Freeze for SineMessage
impl RefUnwindSafe for SineMessage
impl Send for SineMessage
impl Sync for SineMessage
impl Unpin for SineMessage
impl UnwindSafe for SineMessage
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