pub enum AutomatonCommand {
SetEnabled {
id: String,
enabled: bool,
},
SetParameter {
id: String,
name: String,
value: f32,
},
Reset {
id: String,
},
Connect {
from: String,
to: String,
gain: f32,
},
Disconnect {
from: String,
to: String,
},
Create {
kind: String,
id: String,
params: Vec<(String, f32)>,
},
Destroy {
id: String,
},
}Variants§
Implementations§
Source§impl AutomatonCommand
impl AutomatonCommand
pub fn automaton_id(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for AutomatonCommand
impl Clone for AutomatonCommand
Source§fn clone(&self) -> AutomatonCommand
fn clone(&self) -> AutomatonCommand
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 AutomatonCommand
impl Debug for AutomatonCommand
Source§impl Display for AutomatonCommand
impl Display for AutomatonCommand
Source§impl From<AutomatonCommand> for CommandEnum
impl From<AutomatonCommand> for CommandEnum
Source§fn from(cmd: AutomatonCommand) -> Self
fn from(cmd: AutomatonCommand) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CommandEnum> for AutomatonCommand
impl TryFrom<CommandEnum> for AutomatonCommand
impl Command for AutomatonCommand
Auto Trait Implementations§
impl Freeze for AutomatonCommand
impl RefUnwindSafe for AutomatonCommand
impl Send for AutomatonCommand
impl Sync for AutomatonCommand
impl Unpin for AutomatonCommand
impl UnsafeUnpin for AutomatonCommand
impl UnwindSafe for AutomatonCommand
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