pub struct ComponentGraph {
pub components: Vec<ComponentDecl>,
pub wirings: Vec<QueueWiring>,
}Expand description
Component graph representing the DAG of WASM components.
Components are topologically sorted for initialization order. Queue wiring defines inter-component communication.
Fields§
§components: Vec<ComponentDecl>Component declarations (topologically sorted).
wirings: Vec<QueueWiring>Queue wiring (connections between components).
Implementations§
Source§impl ComponentGraph
impl ComponentGraph
Sourcepub fn component_count(&self) -> usize
pub fn component_count(&self) -> usize
Returns the number of components.
Sourcepub fn wiring_count(&self) -> usize
pub fn wiring_count(&self) -> usize
Returns the number of queue wirings.
Trait Implementations§
Source§impl Clone for ComponentGraph
impl Clone for ComponentGraph
Source§fn clone(&self) -> ComponentGraph
fn clone(&self) -> ComponentGraph
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 ComponentGraph
impl Debug for ComponentGraph
Source§impl Default for ComponentGraph
impl Default for ComponentGraph
Source§fn default() -> ComponentGraph
fn default() -> ComponentGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComponentGraph
impl RefUnwindSafe for ComponentGraph
impl Send for ComponentGraph
impl Sync for ComponentGraph
impl Unpin for ComponentGraph
impl UnsafeUnpin for ComponentGraph
impl UnwindSafe for ComponentGraph
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