pub struct BlockAccessListHashMismatch {
pub computed: FixedBytes<32>,
pub expected: FixedBytes<32>,
}Expand description
Error returned when a decoded block access list hash does not match the expected hash.
Fields§
§computed: FixedBytes<32>Hash computed from the received BAL bytes.
expected: FixedBytes<32>Hash expected by the caller, typically header.block_access_list_hash.
Implementations§
Source§impl BlockAccessListHashMismatch
impl BlockAccessListHashMismatch
Sourcepub const fn new(
computed: FixedBytes<32>,
expected: FixedBytes<32>,
) -> BlockAccessListHashMismatch
pub const fn new( computed: FixedBytes<32>, expected: FixedBytes<32>, ) -> BlockAccessListHashMismatch
Creates a new block access list hash validation error.
Trait Implementations§
Source§impl Clone for BlockAccessListHashMismatch
impl Clone for BlockAccessListHashMismatch
Source§fn clone(&self) -> BlockAccessListHashMismatch
fn clone(&self) -> BlockAccessListHashMismatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockAccessListHashMismatch
Source§impl Debug for BlockAccessListHashMismatch
impl Debug for BlockAccessListHashMismatch
impl Eq for BlockAccessListHashMismatch
Source§impl Error for BlockAccessListHashMismatch
impl Error for BlockAccessListHashMismatch
1.30.0 · 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 Hash for BlockAccessListHashMismatch
impl Hash for BlockAccessListHashMismatch
Source§impl PartialEq for BlockAccessListHashMismatch
impl PartialEq for BlockAccessListHashMismatch
Source§fn eq(&self, other: &BlockAccessListHashMismatch) -> bool
fn eq(&self, other: &BlockAccessListHashMismatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockAccessListHashMismatch
Auto Trait Implementations§
impl Freeze for BlockAccessListHashMismatch
impl RefUnwindSafe for BlockAccessListHashMismatch
impl Send for BlockAccessListHashMismatch
impl Sync for BlockAccessListHashMismatch
impl Unpin for BlockAccessListHashMismatch
impl UnsafeUnpin for BlockAccessListHashMismatch
impl UnwindSafe for BlockAccessListHashMismatch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreLayout§
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: 64 bytes