Skip to main content

Graph

Struct Graph 

Source
pub struct Graph {
    pub session: u32,
    pub revision: u32,
    pub first_frame: u64,
    pub nodes: Vec<Node>,
    pub program: Vec<u8>,
    pub outputs: Vec<u8>,
}
Expand description

Coherent graph description returned by a running endpoint.

Object IDs and generations are meaningful within an engine session; aliases are snapshot labels. A reconnect requires a new snapshot. Internal DSP inside a native process is opaque. connections describes signal routing; MIDI bindings are reported on the nodes, and arbitrary message cords are not yet represented by this protocol version.

Fields§

§session: u32

Target connection epoch, not a globally unique or persistent boot ID.

§revision: u32

Applied topology revision within this engine session.

§first_frame: u64

First frame of the accepted audio block that introduced this revision.

§nodes: Vec<Node>

Native process descriptions.

§program: Vec<u8>

Exact active signal program, including its bytecode version.

§outputs: Vec<u8>

Active signal buses bound to physical outputs, in output order.

Implementations§

Source§

impl Graph

Source

pub fn node(&self, alias: &str) -> Option<&Node>

Find a node by its exact, case-sensitive alias.

Source

pub fn connections(&self) -> Result<Vec<Connection>>

Reconstruct signal connections from the program and node port layouts.

Message ports retain their local indices even though bytecode signal operands omit them. Built-in gain/mix operations have @gainN/@mixN labels; N is their instruction ordinal, independent of native IDs.

§Errors

Rejects unknown versions, duplicate IDs/aliases/calls, missing nodes, invalid port layouts, forward bus references and invalid output bindings.

Trait Implementations§

Source§

impl Clone for Graph

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Graph

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Graph

Source§

impl PartialEq for Graph

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Graph

Auto Trait Implementations§

§

impl Forget for Graph

§

impl Freeze for Graph

§

impl Move for Graph

§

impl RefUnwindSafe for Graph

§

impl Send for Graph
where RawVecInner: Send,

§

impl Sync for Graph
where RawVecInner: Sync,

§

impl Unpin for Graph
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Graph

§

impl UnwindSafe for Graph
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.