#[non_exhaustive]pub struct SourceResume {
pub next_block: u64,
pub sequence: u64,
pub activation_block: u64,
pub owner_backfill_activation_block: Option<u64>,
pub canonical_blocks: Vec<BlockRef>,
pub provider_checkpoint: Option<RollbackGuard>,
pub coverage_head: Option<BlockRef>,
}Expand description
Durable state used to rebuild a source engine after process restart.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.next_block: u64Exclusive provider block cursor.
sequence: u64Last committed delivery sequence.
activation_block: u64First block routed to all live owners for this desired-state revision.
owner_backfill_activation_block: Option<u64>Portable activation boundary preserved exactly for this revision.
canonical_blocks: Vec<BlockRef>Retained canonical suffix used for post-restart reorg resolution.
provider_checkpoint: Option<RollbackGuard>Provider-native rollback/checkpoint state.
coverage_head: Option<BlockRef>Runtime-global canonical coverage, independent of the provider scan cursor.
Implementations§
Source§impl SourceResume
impl SourceResume
Sourcepub fn new(next_block: u64, sequence: u64, activation_block: u64) -> Self
pub fn new(next_block: u64, sequence: u64, activation_block: u64) -> Self
Create a resume position without retained canonical or provider-native metadata.
Sourcepub fn with_canonical_blocks(self, canonical_blocks: Vec<BlockRef>) -> Self
pub fn with_canonical_blocks(self, canonical_blocks: Vec<BlockRef>) -> Self
Attach the retained normalized canonical suffix.
Sourcepub fn with_provider_checkpoint(
self,
provider_checkpoint: Option<RollbackGuard>,
) -> Self
pub fn with_provider_checkpoint( self, provider_checkpoint: Option<RollbackGuard>, ) -> Self
Attach the provider-native checkpoint that agrees with the normalized suffix.
Sourcepub fn with_coverage_head(self, coverage_head: Option<BlockRef>) -> Self
pub fn with_coverage_head(self, coverage_head: Option<BlockRef>) -> Self
Attach the runtime-global canonical coverage restored from the durable cursor.
Trait Implementations§
Source§impl Clone for SourceResume
impl Clone for SourceResume
Auto Trait Implementations§
impl Freeze for SourceResume
impl RefUnwindSafe for SourceResume
impl Send for SourceResume
impl Sync for SourceResume
impl Unpin for SourceResume
impl UnsafeUnpin for SourceResume
impl UnwindSafe for SourceResume
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request