pub struct StreamLoaderState<S, T = (), C = ()> {Show 15 fields
pub schema_version: u32,
pub source_identity: String,
pub factory_kind: String,
pub epoch: u64,
pub source_generation: u64,
pub transport_generation: u64,
pub next_batch: u64,
pub next_sequence: u64,
pub short_tail: bool,
pub source_length: Option<usize>,
pub rng_derivation_version: u32,
pub worker_seed_derivation_version: u32,
pub configuration: StreamCheckpointConfiguration,
pub lanes: Vec<StreamLaneState<S, T>>,
pub coordinator: C,
}Expand description
Versioned exact stream state at the next consumer-visible batch.
Fields§
§schema_version: u32Stream schema version; currently one.
source_identity: StringCaller identity for exact source contents.
factory_kind: StringStable factory kind/version.
epoch: u64Task epoch.
source_generation: u64Logical source and transform initialization generation.
transport_generation: u64Transport generation, advanced by each checkpoint barrier.
next_batch: u64Next visible batch index.
next_sequence: u64Next expected global sequence ID.
short_tail: boolWhether the last visible batch was the final incomplete global tail.
source_length: Option<usize>Exact global source length when supplied by the factory.
rng_derivation_version: u32Task RNG derivation version.
worker_seed_derivation_version: u32Worker seed derivation version.
configuration: StreamCheckpointConfigurationExact runtime settings.
lanes: Vec<StreamLaneState<S, T>>Canonically ordered worker states; never contains decoded samples.
coordinator: CCoordinator collation state.
Trait Implementations§
Source§impl<S: Clone, T: Clone, C: Clone> Clone for StreamLoaderState<S, T, C>
impl<S: Clone, T: Clone, C: Clone> Clone for StreamLoaderState<S, T, C>
Source§fn clone(&self) -> StreamLoaderState<S, T, C>
fn clone(&self) -> StreamLoaderState<S, T, C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, S, T, C> Deserialize<'de> for StreamLoaderState<S, T, C>
impl<'de, S, T, C> Deserialize<'de> for StreamLoaderState<S, T, C>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<S, T, C> Freeze for StreamLoaderState<S, T, C>
impl<S, T, C> RefUnwindSafe for StreamLoaderState<S, T, C>
impl<S, T, C> Send for StreamLoaderState<S, T, C>
impl<S, T, C> Sync for StreamLoaderState<S, T, C>
impl<S, T, C> Unpin for StreamLoaderState<S, T, C>
impl<S, T, C> UnsafeUnpin for StreamLoaderState<S, T, C>
impl<S, T, C> UnwindSafe for StreamLoaderState<S, T, C>
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