#[non_exhaustive]pub enum SourceEngineError {
Show 23 variants
QueryPlan(QueryPlanError),
Source(SourceError),
Normalize(NormalizeError),
InvalidPage(SourcePageError),
Canonical(CanonicalError),
NoProgress {
from_block: u64,
next_block: u64,
},
NoPendingDelivery,
DeliveryTokenMismatch,
MissingCursor,
MissingRollbackGuard,
OwnerCatchupReorg {
activation_block: u64,
common_ancestor: u64,
old_tip: u64,
new_tip: u64,
},
PendingDelivery,
SequenceRegression {
committed: u64,
received: u64,
},
ResumeCursorMismatch {
expected: u64,
received: u64,
},
ResumeGuardMismatch(&'static str),
CoverageCursorMismatch {
coverage_successor: u64,
received: u64,
},
CoverageBoundaryConflict {
number: u64,
},
SequenceExhausted,
BlockNumberOverflow,
BlockTimestampOverflow(u64),
InvalidDeliverySizeLimit {
requested: usize,
maximum: usize,
},
DeliveryTooLarge {
encoded_len: usize,
limit: usize,
},
ResponseLimitExceeded {
resource: &'static str,
observed: usize,
limit: usize,
},
}Expand description
Source engine could not produce or commit an ordered delivery.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
QueryPlan(QueryPlanError)
Portable interests could not compile.
Source(SourceError)
The external data source failed.
Normalize(NormalizeError)
Provider data was incomplete.
InvalidPage(SourcePageError)
A provider page violated its requested bounded range or canonical identity.
Canonical(CanonicalError)
Provider blocks could not extend canonical history.
NoProgress
A page did not advance its exclusive cursor.
NoPendingDelivery
No batch is currently awaiting acknowledgement.
DeliveryTokenMismatch
The acknowledgement does not identify the in-flight batch.
MissingCursor
A delivered batch unexpectedly omitted its cursor.
MissingRollbackGuard
Internal rollback recovery was requested without an acknowledged guard.
OwnerCatchupReorg
A fork affected only owner catch-up history, for which v1 has no scoped rollback control.
Fields
PendingDelivery
A service-generated control cannot pass an in-flight source delivery.
SequenceRegression
A service-generated control attempted to move sequence backwards.
ResumeCursorMismatch
The durable cursor was not the successor of its canonical checkpoint.
Fields
ResumeGuardMismatch(&'static str)
Provider-native resume metadata conflicted with the normalized canonical tip.
CoverageCursorMismatch
The provider scan cursor advanced beyond the successor of preserved global coverage.
Fields
CoverageBoundaryConflict
A rescan contradicted the exact block identity of preserved global coverage.
SequenceExhausted
The durable delivery sequence cannot advance without reusing a token.
BlockNumberOverflow
A canonical cursor could not represent the successor of the common ancestor.
BlockTimestampOverflow(u64)
A canonical timestamp could not fit HyperSync’s signed rollback-guard representation.
InvalidDeliverySizeLimit
The configured delivery budget was zero or exceeded the protocol-safe maximum.
DeliveryTooLarge
Even the smallest provider page could not fit the configured wire budget.
ResponseLimitExceeded
A decoded provider response exceeded the independent hard local admission policy.
Trait Implementations§
Source§impl Debug for SourceEngineError
impl Debug for SourceEngineError
Source§impl Display for SourceEngineError
impl Display for SourceEngineError
Source§impl Error for SourceEngineError
impl Error for SourceEngineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<CanonicalError> for SourceEngineError
impl From<CanonicalError> for SourceEngineError
Source§fn from(source: CanonicalError) -> Self
fn from(source: CanonicalError) -> Self
Source§impl From<NormalizeError> for SourceEngineError
impl From<NormalizeError> for SourceEngineError
Source§fn from(source: NormalizeError) -> Self
fn from(source: NormalizeError) -> Self
Source§impl From<QueryPlanError> for SourceEngineError
impl From<QueryPlanError> for SourceEngineError
Source§fn from(source: QueryPlanError) -> Self
fn from(source: QueryPlanError) -> Self
Source§impl From<SourceError> for SourceEngineError
impl From<SourceError> for SourceEngineError
Source§fn from(source: SourceError) -> Self
fn from(source: SourceError) -> Self
Source§impl From<SourcePageError> for SourceEngineError
impl From<SourcePageError> for SourceEngineError
Source§fn from(source: SourcePageError) -> Self
fn from(source: SourcePageError) -> Self
Auto Trait Implementations§
impl Freeze for SourceEngineError
impl RefUnwindSafe for SourceEngineError
impl Send for SourceEngineError
impl Sync for SourceEngineError
impl Unpin for SourceEngineError
impl UnsafeUnpin for SourceEngineError
impl UnwindSafe for SourceEngineError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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 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>
T in a tonic::Request