pub struct CommittedSourceHandoff { /* private fields */ }Expand description
Validated source recovery state bound to one committed cluster cut.
The object is immutable and intended to be shared as one Arc with an
assignment publication. It is not a second durable or serialized format.
Implementations§
Source§impl CommittedSourceHandoff
impl CommittedSourceHandoff
Sourcepub const fn attempt(&self) -> CheckpointAttempt
pub const fn attempt(&self) -> CheckpointAttempt
Exact committed checkpoint attempt supplying this handoff.
Sourcepub const fn checkpoint_assignment_version(&self) -> u64
pub const fn checkpoint_assignment_version(&self) -> u64
Assignment version sealed by the committed checkpoint.
Sourcepub const fn cluster_watermark(&self) -> CheckpointWatermark
pub const fn cluster_watermark(&self) -> CheckpointWatermark
Explicit cluster event-time status at the committed cut.
Sourcepub const fn recovery_watermark_frontier(&self) -> Option<i64>
pub const fn recovery_watermark_frontier(&self) -> Option<i64>
Durable numeric event-time frontier restored with the committed cut.
An idle cut can retain the last active frontier even though it has no currently active input. An uninitialized cut has no recovery frontier.
Sourcepub fn source(&self, source: &str) -> Option<&SourceHandoffState>
pub fn source(&self, source: &str) -> Option<&SourceHandoffState>
State for source, or None when the committed cut did not contain it.
Sourcepub fn sources(
&self,
) -> impl ExactSizeIterator<Item = (&str, &SourceHandoffState)> + DoubleEndedIterator
pub fn sources( &self, ) -> impl ExactSizeIterator<Item = (&str, &SourceHandoffState)> + DoubleEndedIterator
Iterate the complete source cut in canonical source-name order.
Sourcepub fn source_count(&self) -> usize
pub fn source_count(&self) -> usize
Number of sources captured in the committed cut.
Trait Implementations§
Source§impl Debug for CommittedSourceHandoff
impl Debug for CommittedSourceHandoff
impl Eq for CommittedSourceHandoff
Source§impl PartialEq for CommittedSourceHandoff
impl PartialEq for CommittedSourceHandoff
impl StructuralPartialEq for CommittedSourceHandoff
Auto Trait Implementations§
impl Freeze for CommittedSourceHandoff
impl RefUnwindSafe for CommittedSourceHandoff
impl Send for CommittedSourceHandoff
impl Sync for CommittedSourceHandoff
impl Unpin for CommittedSourceHandoff
impl UnsafeUnpin for CommittedSourceHandoff
impl UnwindSafe for CommittedSourceHandoff
Blanket Implementations§
impl<T> Allocation for T
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].