pub struct RecoveredState {
pub epoch: u64,
pub state_snapshot: Option<StateSnapshot>,
pub wal_position: u64,
pub wal_entries_replayed: u64,
pub source_offsets: HashMap<String, u64>,
pub watermark: Option<i64>,
pub checkpoint_id: Option<u64>,
pub state_changes: Vec<(Vec<u8>, Option<Vec<u8>>)>,
}Expand description
Recovered state from checkpoint + WAL replay.
Fields§
§epoch: u64The epoch at which recovery completed.
state_snapshot: Option<StateSnapshot>State snapshot (if checkpoint had state data).
wal_position: u64WAL position after replay.
wal_entries_replayed: u64Number of WAL entries replayed.
source_offsets: HashMap<String, u64>Source offsets for exactly-once semantics.
watermark: Option<i64>Watermark at recovery point.
checkpoint_id: Option<u64>Checkpoint ID that was used (if any).
state_changes: Vec<(Vec<u8>, Option<Vec<u8>>)>State changes from WAL replay (key, value or None for delete).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecoveredState
impl RefUnwindSafe for RecoveredState
impl Send for RecoveredState
impl Sync for RecoveredState
impl Unpin for RecoveredState
impl UnsafeUnpin for RecoveredState
impl UnwindSafe for RecoveredState
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<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>
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.