Enum PayloadBuilderError
pub enum PayloadBuilderError {
MissingParentHeader(FixedBytes<32>),
MissingParentBlock(FixedBytes<32>),
ChannelClosed,
MissingPayload,
Internal(RethError),
EvmExecutionError(Box<dyn Error + Sync + Send>),
Other(Box<dyn Error + Sync + Send>),
InvalidAttributes(Box<dyn Error + Sync + Send>),
}Expand description
Possible error variants during payload building.
Variants§
MissingParentHeader(FixedBytes<32>)
Thrown when the parent header cannot be found
MissingParentBlock(FixedBytes<32>)
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 + Sync + Send>)
Unrecoverable error during evm execution.
Other(Box<dyn Error + Sync + Send>)
Any other payload building errors.
InvalidAttributes(Box<dyn Error + Sync + Send>)
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§
§impl PayloadBuilderError
impl PayloadBuilderError
pub fn evm<E>(error: E) -> PayloadBuilderError
pub fn evm<E>(error: E) -> PayloadBuilderError
Create a new EVM error from a boxed error.
pub fn other<E>(error: E) -> PayloadBuilderError
pub fn other<E>(error: E) -> PayloadBuilderError
Create a new error from a boxed error.
pub fn invalid_attributes<E>(error: E) -> PayloadBuilderError
pub fn invalid_attributes<E>(error: E) -> PayloadBuilderError
Create a new error that rejects the payload attributes.
Trait Implementations§
§impl Debug for PayloadBuilderError
impl Debug for PayloadBuilderError
§impl Display for PayloadBuilderError
impl Display for PayloadBuilderError
§impl Error for PayloadBuilderError
impl Error for PayloadBuilderError
§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()
§impl From<BlockExecutionError> for PayloadBuilderError
impl From<BlockExecutionError> for PayloadBuilderError
§fn from(error: BlockExecutionError) -> PayloadBuilderError
fn from(error: BlockExecutionError) -> PayloadBuilderError
§impl From<ProviderError> for PayloadBuilderError
impl From<ProviderError> for PayloadBuilderError
§fn from(error: ProviderError) -> PayloadBuilderError
fn from(error: ProviderError) -> PayloadBuilderError
§impl From<RecvError> for PayloadBuilderError
impl From<RecvError> for PayloadBuilderError
§fn from(_: RecvError) -> PayloadBuilderError
fn from(_: RecvError) -> PayloadBuilderError
§impl From<RethError> for PayloadBuilderError
impl From<RethError> for PayloadBuilderError
§fn from(source: RethError) -> PayloadBuilderError
fn from(source: RethError) -> PayloadBuilderError
§impl<T> From<SendError<T>> for PayloadBuilderError
impl<T> From<SendError<T>> for PayloadBuilderError
§fn from(_: SendError<T>) -> PayloadBuilderError
fn from(_: SendError<T>) -> 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