pub enum ScraperError {
Show 30 variants
StorageError(NyxdScraperStorageError),
ScraperAlreadyRunning,
BlocksUnavailable {
height: u32,
},
WebSocketConnectionFailure {
url: String,
source: Box<Error>,
},
HttpConnectionFailure {
url: String,
source: Box<Error>,
},
ChainSubscriptionFailure {
source: Box<Error>,
},
BlockQueryFailure {
height: u32,
source: Box<Error>,
},
BlockResultsQueryFailure {
height: u32,
source: Box<Error>,
},
ValidatorsQueryFailure {
height: u32,
source: Box<Error>,
},
TxResultsQueryFailure {
hash: Hash,
source: Box<Error>,
},
AbciInfoQueryFailure {
source: Box<Error>,
},
TxParseFailure {
hash: Hash,
source: ErrorReport,
},
MsgParseFailure {
hash: Hash,
index: usize,
type_url: String,
source: ErrorReport,
},
InvalidSubscriptionEvent {
query: String,
kind: String,
},
EmptyBlockData {
query: String,
},
MaximumWebSocketFailures,
StorageTxBeginFailure {
source: NyxdScraperStorageError,
},
StorageTxCommitFailure {
source: NyxdScraperStorageError,
},
ClosedChannelError,
MalformedData(MalformedDataError),
BlockProposerNotInValidatorSet {
height: u32,
proposer: String,
},
ZeroPruningInterval,
TooSmallPruningInterval {
interval: u32,
},
TooSmallKeepRecent {
keep_recent: u32,
},
MissingTypeUrlRegistration {
type_url: String,
},
InvalidProtoRepresentation {
type_url: String,
error: DecodeError,
},
JsonSerialisationFailure {
type_url: String,
error: Error,
},
JsonSerialisationFailureNotObject {
type_url: String,
},
JsonWasmSerialisationFailureNotString {
field: String,
type_url: String,
},
JsonWasmSerialisationFailureInvalidBase64Encoding {
field: String,
type_url: String,
error: DecodeError,
},
}Variants§
StorageError(NyxdScraperStorageError)
ScraperAlreadyRunning
WebSocketConnectionFailure
HttpConnectionFailure
ChainSubscriptionFailure
BlockQueryFailure
BlockResultsQueryFailure
ValidatorsQueryFailure
TxResultsQueryFailure
AbciInfoQueryFailure
TxParseFailure
MsgParseFailure
InvalidSubscriptionEvent
EmptyBlockData
MaximumWebSocketFailures
StorageTxBeginFailure
Fields
§
source: NyxdScraperStorageErrorStorageTxCommitFailure
Fields
§
source: NyxdScraperStorageErrorClosedChannelError
MalformedData(MalformedDataError)
BlockProposerNotInValidatorSet
ZeroPruningInterval
TooSmallPruningInterval
TooSmallKeepRecent
MissingTypeUrlRegistration
InvalidProtoRepresentation
JsonSerialisationFailure
JsonSerialisationFailureNotObject
JsonWasmSerialisationFailureNotString
JsonWasmSerialisationFailureInvalidBase64Encoding
Implementations§
Source§impl ScraperError
impl ScraperError
pub fn tx_begin_failure(source: NyxdScraperStorageError) -> ScraperError
pub fn tx_commit_failure(source: NyxdScraperStorageError) -> ScraperError
Trait Implementations§
Source§impl Debug for ScraperError
impl Debug for ScraperError
Source§impl Display for ScraperError
impl Display for ScraperError
Source§impl Error for ScraperError
impl Error for ScraperError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<MalformedDataError> for ScraperError
impl From<MalformedDataError> for ScraperError
Source§fn from(source: MalformedDataError) -> Self
fn from(source: MalformedDataError) -> Self
Converts to this type from the input type.
Source§impl From<NyxdScraperStorageError> for ScraperError
impl From<NyxdScraperStorageError> for ScraperError
Source§fn from(source: NyxdScraperStorageError) -> Self
fn from(source: NyxdScraperStorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScraperError
impl !RefUnwindSafe for ScraperError
impl Send for ScraperError
impl Sync for ScraperError
impl Unpin for ScraperError
impl !UnwindSafe for ScraperError
Blanket Implementations§
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
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> 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