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>
Auto Trait Implementations§
impl<T> Freeze for StreamResult<T>
impl<T> RefUnwindSafe for StreamResult<T>where
Vec<T>: RefUnwindSafe,
impl<T> Send for StreamResult<T>
impl<T> Sync for StreamResult<T>
impl<T> Unpin for StreamResult<T>
impl<T> UnsafeUnpin for StreamResult<T>where
Vec<T>: UnsafeUnpin,
impl<T> UnwindSafe for StreamResult<T>where
Vec<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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