pub struct NodeRuntime { /* private fields */ }Expand description
Runtime state for a node in the graph.
Implementations§
Source§impl NodeRuntime
impl NodeRuntime
Sourcepub fn push_input(
&mut self,
port: PortId,
frame: FilterFrame,
) -> GraphResult<()>
pub fn push_input( &mut self, port: PortId, frame: FilterFrame, ) -> GraphResult<()>
Push a frame to an input port.
Sourcepub fn pop_output(&mut self, port: PortId) -> GraphResult<Option<FilterFrame>>
pub fn pop_output(&mut self, port: PortId) -> GraphResult<Option<FilterFrame>>
Pop a frame from an output port.
Sourcepub fn process(&mut self) -> GraphResult<()>
pub fn process(&mut self) -> GraphResult<()>
Process the node.
Sourcepub fn frames_processed(&self) -> u64
pub fn frames_processed(&self) -> u64
Get the number of frames processed.
Auto Trait Implementations§
impl !RefUnwindSafe for NodeRuntime
impl !UnwindSafe for NodeRuntime
impl Freeze for NodeRuntime
impl Send for NodeRuntime
impl Sync for NodeRuntime
impl Unpin for NodeRuntime
impl UnsafeUnpin for NodeRuntime
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more