pub struct StreamingExecutor { /* private fields */ }Expand description
Streaming executor for processing data in chunks
Implementations§
Source§impl StreamingExecutor
impl StreamingExecutor
Sourcepub fn create_chunks(&self, data: Vec<f32>, node_id: &str) -> Vec<StreamChunk>
pub fn create_chunks(&self, data: Vec<f32>, node_id: &str) -> Vec<StreamChunk>
Split input data into chunks
Sourcepub fn execute_chunk(
&self,
_graph: &ComputationGraph,
chunk: StreamChunk,
) -> Result<StreamChunk, GraphError>
pub fn execute_chunk( &self, _graph: &ComputationGraph, chunk: StreamChunk, ) -> Result<StreamChunk, GraphError>
Execute graph on a stream chunk
Sourcepub fn process_stream(
&self,
graph: &ComputationGraph,
chunks: Vec<StreamChunk>,
) -> Result<Vec<StreamChunk>, GraphError>
pub fn process_stream( &self, graph: &ComputationGraph, chunks: Vec<StreamChunk>, ) -> Result<Vec<StreamChunk>, GraphError>
Process a stream of chunks through the graph
Sourcepub fn buffer_size(&self) -> usize
pub fn buffer_size(&self) -> usize
Get the current buffer size
Sourcepub fn clear_buffer(&self)
pub fn clear_buffer(&self)
Clear the buffer
Sourcepub fn chunk_size(&self) -> usize
pub fn chunk_size(&self) -> usize
Get chunk size
Sourcepub fn max_buffer_size(&self) -> usize
pub fn max_buffer_size(&self) -> usize
Get max buffer size
Auto Trait Implementations§
impl Freeze for StreamingExecutor
impl RefUnwindSafe for StreamingExecutor
impl Send for StreamingExecutor
impl Sync for StreamingExecutor
impl Unpin for StreamingExecutor
impl UnwindSafe for StreamingExecutor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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