pub struct NodeSnapshot {
pub id: NodeId,
pub inputs: Vec<PortMeta>,
pub outputs: Vec<PortMeta>,
}Available on crate feature
topology only.Expand description
Structural snapshot of a single node: its id plus the port metadata of every input and output port.
The node’s implementation (Box<dyn AudioNode>) is deliberately not
captured — it cannot be serialized. A rebuild pairs this metadata with a
concrete factory (see Graph::from_snapshot).
Fields§
§id: NodeIdStable id of the node within the graph.
inputs: Vec<PortMeta>Metadata for every input port, in the order the node reports them.
outputs: Vec<PortMeta>Metadata for every output port, in the order the node reports them.
Trait Implementations§
Source§impl Clone for NodeSnapshot
impl Clone for NodeSnapshot
Source§fn clone(&self) -> NodeSnapshot
fn clone(&self) -> NodeSnapshot
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 moreSource§impl Debug for NodeSnapshot
impl Debug for NodeSnapshot
Source§impl<'de> Deserialize<'de> for NodeSnapshot
impl<'de> Deserialize<'de> for NodeSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeSnapshot
Source§impl PartialEq for NodeSnapshot
impl PartialEq for NodeSnapshot
Source§impl Serialize for NodeSnapshot
impl Serialize for NodeSnapshot
impl StructuralPartialEq for NodeSnapshot
Auto Trait Implementations§
impl Freeze for NodeSnapshot
impl RefUnwindSafe for NodeSnapshot
impl Send for NodeSnapshot
impl Sync for NodeSnapshot
impl Unpin for NodeSnapshot
impl UnsafeUnpin for NodeSnapshot
impl UnwindSafe for NodeSnapshot
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