pub struct LivePlacedNode<P> { /* private fields */ }Expand description
Live graph runner bound to one local placement site.
Implementations§
Source§impl<P: Processor> LivePlacedNode<P>
impl<P: Processor> LivePlacedNode<P>
Sourcepub fn new(
processor: P,
config: LiveGraphConfig,
site: LivePlacementSite,
) -> Result<Self>
pub fn new( processor: P, config: LiveGraphConfig, site: LivePlacementSite, ) -> Result<Self>
Places a processor at a site, validating realtime pinning and creating any process rings the site requires.
Sourcepub fn site(&self) -> LivePlacementSite
pub fn site(&self) -> LivePlacementSite
Returns the placement site.
Sourcepub fn runner(&self) -> &LiveGraphRunner<P>
pub fn runner(&self) -> &LiveGraphRunner<P>
Returns a shared reference to the underlying runner.
Sourcepub fn runner_mut(&mut self) -> &mut LiveGraphRunner<P>
pub fn runner_mut(&mut self) -> &mut LiveGraphRunner<P>
Returns a mutable reference to the underlying runner.
Sourcepub fn process_interleaved_f32(
&mut self,
input: Option<&[f32]>,
output: &mut [f32],
frames: usize,
transport: Transport,
) -> Result<LiveProcessReport>
pub fn process_interleaved_f32( &mut self, input: Option<&[f32]>, output: &mut [f32], frames: usize, transport: Transport, ) -> Result<LiveProcessReport>
Processes one interleaved block, dispatching to the site’s execution strategy (inline, worker thread, or process ring).
Sourcepub fn steady_state_snapshot(&self) -> LivePlacementSnapshot
pub fn steady_state_snapshot(&self) -> LivePlacementSnapshot
Captures the placed node’s steady-state capacity snapshot.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for LivePlacedNode<P>where
P: Freeze,
impl<P> RefUnwindSafe for LivePlacedNode<P>where
P: RefUnwindSafe,
impl<P> Send for LivePlacedNode<P>where
P: Send,
impl<P> Sync for LivePlacedNode<P>where
P: Sync,
impl<P> Unpin for LivePlacedNode<P>where
P: Unpin,
impl<P> UnsafeUnpin for LivePlacedNode<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for LivePlacedNode<P>where
P: UnwindSafe,
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