pub enum EngineObjectValidationError {
Payload(VersionSpecificValidationError),
PayloadAttributes(VersionSpecificValidationError),
UnsupportedFork,
InvalidParams(Box<dyn Error + Send + Sync>),
}Expand description
Thrown when the payload or attributes are known to be invalid before processing.
This is used mainly for
validate_version_specific_fields, which validates
both execution payloads and forkchoice update attributes with respect to a method version.
Variants§
Payload(VersionSpecificValidationError)
Thrown when the underlying validation error occurred while validating an
ExecutionPayload.
PayloadAttributes(VersionSpecificValidationError)
Thrown when the underlying validation error occurred while validating a
PayloadAttributes.
UnsupportedFork
Thrown if PayloadAttributes or ExecutionPayload were provided with a timestamp, but the
version of the engine method called is meant for a fork that occurs after the provided
timestamp.
InvalidParams(Box<dyn Error + Send + Sync>)
Another type of error that is not covered by the above variants.
Implementations§
Source§impl EngineObjectValidationError
impl EngineObjectValidationError
Sourcepub fn invalid_params<E>(error: E) -> Self
pub fn invalid_params<E>(error: E) -> Self
Creates an instance of the InvalidParams variant with the given error.
Trait Implementations§
Source§impl Debug for EngineObjectValidationError
impl Debug for EngineObjectValidationError
Source§impl Error for EngineObjectValidationError
impl Error for EngineObjectValidationError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for EngineObjectValidationError
impl !UnwindSafe for EngineObjectValidationError
impl Freeze for EngineObjectValidationError
impl Send for EngineObjectValidationError
impl Sync for EngineObjectValidationError
impl Unpin for EngineObjectValidationError
impl UnsafeUnpin for EngineObjectValidationError
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: 24 bytes
Size for each variant:
Payload: 1 bytePayloadAttributes: 1 byteUnsupportedFork: 0 bytesInvalidParams: 23 bytes