pub enum Command {
AddNode {
id: NodeId,
},
RemoveNode {
id: NodeId,
},
Connect {
src: NodeId,
dst: NodeId,
slot: usize,
},
Disconnect {
dst: NodeId,
slot: usize,
},
UpdateParam {
node: NodeId,
param_index: usize,
new_param: Param,
},
SetOutputNode {
id: NodeId,
},
SetMute {
muted: bool,
},
ClearGraph,
}Expand description
All mutations the control thread can request.
Variants§
AddNode
Add a new node.
RemoveNode
Remove a node and release its buffer.
Connect
Connect output of src to input slot slot of dst.
Disconnect
Disconnect input slot slot of dst.
UpdateParam
Update a parameter with a new smoothed value.
SetOutputNode
Swap the output node.
SetMute
Mute / unmute all audio output.
ClearGraph
Remove all nodes and edges — silence the graph.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more