pub struct VnodeAssignmentSnapshot { /* private fields */ }Expand description
One immutable publication of vnode ownership and the source cursors that belong to the same assignment version.
Implementations§
Source§impl VnodeAssignmentSnapshot
impl VnodeAssignmentSnapshot
Sourcepub fn owner_changed_version(&self, vnode: u32) -> Option<u64>
pub fn owner_changed_version(&self, vnode: u32) -> Option<u64>
Version of the last ownership change for vnode.
Sourcepub const fn has_committed_handoff(&self) -> bool
pub const fn has_committed_handoff(&self) -> bool
Whether this publication carries a durable decided checkpoint cut.
Sourcepub fn source_handoff(&self, source: &str) -> Option<&SourceHandoffState>
pub fn source_handoff(&self, source: &str) -> Option<&SourceHandoffState>
Validated committed state for one source, without cloning its checkpoint maps.
Sourcepub fn committed_source_handoff(&self) -> Option<&CommittedSourceHandoff>
pub fn committed_source_handoff(&self) -> Option<&CommittedSourceHandoff>
Complete committed source cut carried by this publication, if present.
Sourcepub const fn source_handoff_installed_version(&self) -> Option<u64>
pub const fn source_handoff_installed_version(&self) -> Option<u64>
Assignment version that installed the current handoff. Carry-only publications preserve the earlier version so runtimes do not restore the same recovery cut for an unrelated roster update.
Sourcepub fn source_handoff_attempt(&self) -> Option<CheckpointAttempt>
pub fn source_handoff_attempt(&self) -> Option<CheckpointAttempt>
Exact checkpoint attempt supplying the committed handoff, if present.
Sourcepub fn source_handoff_assignment_version(&self) -> Option<u64>
pub fn source_handoff_assignment_version(&self) -> Option<u64>
Assignment version sealed by the committed handoff, if present.
Sourcepub fn source_handoff_cluster_watermark(&self) -> Option<CheckpointWatermark>
pub fn source_handoff_cluster_watermark(&self) -> Option<CheckpointWatermark>
Explicit cluster event-time status at the committed cut, if present.
Trait Implementations§
Source§impl Clone for VnodeAssignmentSnapshot
impl Clone for VnodeAssignmentSnapshot
Source§fn clone(&self) -> VnodeAssignmentSnapshot
fn clone(&self) -> VnodeAssignmentSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for VnodeAssignmentSnapshot
impl RefUnwindSafe for VnodeAssignmentSnapshot
impl Send for VnodeAssignmentSnapshot
impl Sync for VnodeAssignmentSnapshot
impl Unpin for VnodeAssignmentSnapshot
impl UnsafeUnpin for VnodeAssignmentSnapshot
impl UnwindSafe for VnodeAssignmentSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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].