Enum alloy_network::eip2718::Eip2718Error
#[non_exhaustive]pub enum Eip2718Error {
RlpError(Error),
UnexpectedType(u8),
}
Expand description
EIP-2718 decoding errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RlpError(Error)
Rlp error from [alloy_rlp
].
UnexpectedType(u8)
Got an unexpected type flag while decoding.
Trait Implementations§
§impl Clone for Eip2718Error
impl Clone for Eip2718Error
§fn clone(&self) -> Eip2718Error
fn clone(&self) -> Eip2718Error
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for Eip2718Error
impl Debug for Eip2718Error
§impl Display for Eip2718Error
impl Display for Eip2718Error
§impl Error for Eip2718Error
Available on crate feature std
only.
impl Error for Eip2718Error
Available on crate feature
std
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<Error> for Eip2718Error
impl From<Error> for Eip2718Error
§fn from(err: Error) -> Eip2718Error
fn from(err: Error) -> Eip2718Error
Converts to this type from the input type.
impl Copy for Eip2718Error
Auto Trait Implementations§
impl Freeze for Eip2718Error
impl RefUnwindSafe for Eip2718Error
impl Send for Eip2718Error
impl Sync for Eip2718Error
impl Unpin for Eip2718Error
impl UnwindSafe for Eip2718Error
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 more§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:
RlpError
: 24 bytesUnexpectedType
: 9 bytes