pub struct StreamResult<T> {
pub outputs: Vec<T>,
pub metadata: ChunkMetadata,
pub processing_time_ms: f64,
}Expand description
Streaming execution result with chunk information
Fields§
§outputs: Vec<T>§metadata: ChunkMetadata§processing_time_ms: f64Implementations§
Source§impl<T> StreamResult<T>
impl<T> StreamResult<T>
pub fn new( outputs: Vec<T>, metadata: ChunkMetadata, processing_time_ms: f64, ) -> Self
pub fn throughput_items_per_sec(&self) -> f64
Trait Implementations§
Source§impl<T: Clone> Clone for StreamResult<T>
impl<T: Clone> Clone for StreamResult<T>
Source§fn clone(&self) -> StreamResult<T>
fn clone(&self) -> StreamResult<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for StreamResult<T>
impl<T> RefUnwindSafe for StreamResult<T>where
T: RefUnwindSafe,
impl<T> Send for StreamResult<T>where
T: Send,
impl<T> Sync for StreamResult<T>where
T: Sync,
impl<T> Unpin for StreamResult<T>where
T: Unpin,
impl<T> UnwindSafe for StreamResult<T>where
T: 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