pub enum PayloadBuilderError {
MissingParentHeader(B256),
MissingParentBlock(B256),
ChannelClosed,
MissingPayload,
Internal(RethError),
EvmExecutionError(Box<dyn Error + Send + Sync>),
Other(Box<dyn Error + Send + Sync>),
InvalidAttributes(Box<dyn Error + Send + Sync>),
}Expand description
Possible error variants during payload building.
Variants§
MissingParentHeader(B256)
Thrown when the parent header cannot be found
MissingParentBlock(B256)
Thrown when the parent block is missing.
ChannelClosed
An oneshot channels has been closed.
MissingPayload
If there’s no payload to resolve.
Internal(RethError)
Other internal error
EvmExecutionError(Box<dyn Error + Send + Sync>)
Unrecoverable error during evm execution.
Other(Box<dyn Error + Send + Sync>)
Any other payload building errors.
InvalidAttributes(Box<dyn Error + Send + Sync>)
The payload attributes are invalid on top of the parent block, e.g. a transaction they include is invalid.
Returned from PayloadJobGenerator::new_payload_job, this is the only variant that rejects
the attributes; returned later from a running job, it is an internal error like any other.
Failures of this node, such as a failed state read during execution, must use another
variant.
Implementations§
Source§impl PayloadBuilderError
impl PayloadBuilderError
Trait Implementations§
Source§impl Debug for PayloadBuilderError
impl Debug for PayloadBuilderError
Source§impl Display for PayloadBuilderError
impl Display for PayloadBuilderError
Source§impl Error for PayloadBuilderError
impl Error for PayloadBuilderError
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<BlockExecutionError> for PayloadBuilderError
impl From<BlockExecutionError> for PayloadBuilderError
Source§impl From<ProviderError> for PayloadBuilderError
impl From<ProviderError> for PayloadBuilderError
Source§impl From<RecvError> for PayloadBuilderError
impl From<RecvError> for PayloadBuilderError
Source§impl From<RethError> for PayloadBuilderError
impl From<RethError> for PayloadBuilderError
Auto Trait Implementations§
impl !RefUnwindSafe for PayloadBuilderError
impl !UnwindSafe for PayloadBuilderError
impl Freeze for PayloadBuilderError
impl Send for PayloadBuilderError
impl Sync for PayloadBuilderError
impl Unpin for PayloadBuilderError
impl UnsafeUnpin for PayloadBuilderError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> MaybeDebug for Twhere
T: Debug,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes
Size for each variant:
MissingParentHeader: 33 bytesMissingParentBlock: 33 bytesChannelClosed: 0 bytesMissingPayload: 0 bytesInternal: 56 bytesEvmExecutionError: 24 bytesOther: 24 bytesInvalidAttributes: 24 bytes