#[non_exhaustive]pub enum SourcePageError {
Show 24 variants
CursorBeyondTarget {
next_block: u64,
to_block_excl: u64,
},
ArchiveBehindCursor {
archive_height: u64,
next_block: u64,
},
MissingField(&'static str),
InvalidWidth {
field: &'static str,
expected: usize,
received: usize,
},
NonContiguousBlock {
expected: u64,
received: u64,
},
ParentHashMismatch {
number: u64,
},
IncompleteBlockRange {
expected_next_block: u64,
next_block: u64,
},
MissingRollbackGuardRange,
RollbackGuardStartMismatch {
expected: u64,
received: u64,
},
RollbackGuardTipMismatch {
expected: u64,
received: u64,
},
RollbackGuardParentMismatch {
number: u64,
},
RollbackGuardHashMismatch {
number: u64,
},
RollbackGuardTimestampMismatch {
number: u64,
},
RollbackGuardTimestampOutOfRange {
number: u64,
},
LogOutsidePage {
block_number: u64,
from_block: u64,
next_block: u64,
},
LogWithoutBlock {
block_number: u64,
},
LogBlockHashMismatch {
block_number: u64,
},
RemovedLogInCanonicalPage {
block_number: u64,
},
DuplicateLog {
log_index: u64,
},
TransactionIdentityConflict {
block_number: u64,
},
TooManyLogTopics {
received: usize,
},
NonContiguousLogTopics,
QuantityOverflow(&'static str),
BlockNumberOverflow,
}Expand description
A provider page violated the bounded, contiguous source contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CursorBeyondTarget
The provider advanced beyond the requested exclusive target.
ArchiveBehindCursor
The provider’s advertised archive height cannot contain the returned page.
MissingField(&'static str)
A required canonical or log identity field was absent.
InvalidWidth
A fixed-width identity field had the wrong size.
Fields
NonContiguousBlock
A block number did not immediately follow the previous returned block.
ParentHashMismatch
Adjacent returned blocks did not form one chain.
IncompleteBlockRange
The returned exclusive cursor did not match complete header coverage.
Fields
MissingRollbackGuardRange
A rollback guard was present without any returned block range to guard.
RollbackGuardStartMismatch
The rollback guard did not start at the first returned block.
RollbackGuardTipMismatch
The rollback guard did not end at the final returned block.
RollbackGuardParentMismatch
The rollback guard did not preserve the first returned block’s parent.
RollbackGuardHashMismatch
The rollback guard tip hash did not match the final returned block.
RollbackGuardTimestampMismatch
The rollback guard timestamp did not match the final returned block.
RollbackGuardTimestampOutOfRange
A block timestamp could not be represented by HyperSync’s signed guard.
LogOutsidePage
A log was outside the page’s proven canonical range.
LogWithoutBlock
A log did not have a corresponding returned header.
LogBlockHashMismatch
A log claimed a hash other than its returned header.
RemovedLogInCanonicalPage
A historical row claimed removal while matching the page’s current canonical header.
DuplicateLog
A stable log identity occurred more than once in the page.
TransactionIdentityConflict
Logs disagree on transaction hash/index identity within one block.
TooManyLogTopics
An EVM log contained more than four indexed topics.
NonContiguousLogTopics
A later topic was present after an earlier topic position was absent.
QuantityOverflow(&'static str)
A source quantity could not fit the protocol’s fixed width.
BlockNumberOverflow
Header iteration could not represent the following block.
Trait Implementations§
Source§impl Clone for SourcePageError
impl Clone for SourcePageError
Source§impl Debug for SourcePageError
impl Debug for SourcePageError
Source§impl Display for SourcePageError
impl Display for SourcePageError
impl Eq for SourcePageError
Source§impl Error for SourcePageError
impl Error for SourcePageError
1.30.0 · 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<SourcePageError> for SourceEngineError
impl From<SourcePageError> for SourceEngineError
Source§fn from(source: SourcePageError) -> Self
fn from(source: SourcePageError) -> Self
Source§impl PartialEq for SourcePageError
impl PartialEq for SourcePageError
impl StructuralPartialEq for SourcePageError
Auto Trait Implementations§
impl Freeze for SourcePageError
impl RefUnwindSafe for SourcePageError
impl Send for SourcePageError
impl Sync for SourcePageError
impl Unpin for SourcePageError
impl UnsafeUnpin for SourcePageError
impl UnwindSafe for SourcePageError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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