Struct StreamBatch
pub struct StreamBatch {
pub run: RunId,
pub from: u64,
pub next: u64,
pub chunks: Vec<Chunk>,
pub end: Option<StreamEnd>,
}Expand description
One read’s answer: the durable chunks from from on, and the end once
the reader has every chunk.
Fields§
§run: RunIdThe run the stream belongs to. A reader passes it back to keep reading that run when its workflow ID moves on to another.
from: u64§next: u64The offset to read from next.
chunks: Vec<Chunk>§end: Option<StreamEnd>Implementations§
§impl StreamBatch
impl StreamBatch
Trait Implementations§
§impl Clone for StreamBatch
impl Clone for StreamBatch
§fn clone(&self) -> StreamBatch
fn clone(&self) -> StreamBatch
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 more§impl Debug for StreamBatch
impl Debug for StreamBatch
§impl PartialEq for StreamBatch
impl PartialEq for StreamBatch
impl StructuralPartialEq for StreamBatch
Auto Trait Implementations§
impl Freeze for StreamBatch
impl RefUnwindSafe for StreamBatch
impl Send for StreamBatch
impl Sync for StreamBatch
impl Unpin for StreamBatch
impl UnsafeUnpin for StreamBatch
impl UnwindSafe for StreamBatch
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