pub enum Instruction {
CreateNode {
node_id: NodeId,
node_type: String,
},
SetProperty {
node_id: NodeId,
property: String,
value: Value,
},
AppendChild {
parent_id: NodeId,
child_id: NodeId,
child_output_channel: i32,
},
ActivateRoots {
roots: Vec<NodeId>,
},
CommitUpdates,
}Expand description
Instruction types and the runtime wrapper. Instruction supported by the current wrapper surface.
Variants§
CreateNode
Create a runtime node with the given identifier and type.
Fields
SetProperty
Set a property on an existing node.
Fields
AppendChild
Append one node as a child of another node.
Fields
ActivateRoots
Activate the provided root nodes.
CommitUpdates
Commit a pending set of runtime updates.
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 moreAuto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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