Enum zenith_types::Zenith::ZenithErrors
source · pub enum ZenithErrors {
BadSignature(BadSignature),
IncorrectHostBlock(IncorrectHostBlock),
OneRollupBlockPerHostBlock(OneRollupBlockPerHostBlock),
OnlySequencerAdmin(OnlySequencerAdmin),
}Expand description
Container for all the Zenith custom errors.
Variants§
BadSignature(BadSignature)
IncorrectHostBlock(IncorrectHostBlock)
OneRollupBlockPerHostBlock(OneRollupBlockPerHostBlock)
OnlySequencerAdmin(OnlySequencerAdmin)
Implementations§
Trait Implementations§
source§impl Debug for ZenithErrors
impl Debug for ZenithErrors
source§impl<'de> Deserialize<'de> for ZenithErrors
impl<'de> Deserialize<'de> for ZenithErrors
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ZenithErrors
impl PartialEq for ZenithErrors
source§fn eq(&self, other: &ZenithErrors) -> bool
fn eq(&self, other: &ZenithErrors) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ZenithErrors
impl Serialize for ZenithErrors
source§impl SolInterface for ZenithErrors
impl SolInterface for ZenithErrors
source§const MIN_DATA_LENGTH: usize = 0usize
const MIN_DATA_LENGTH: usize = 0usize
The minimum length of the data for this type. Read more
source§fn valid_selector(selector: [u8; 4]) -> bool
fn valid_selector(selector: [u8; 4]) -> bool
Returns
true if the given selector is known to this type.source§fn abi_decode_raw(
selector: [u8; 4],
data: &[u8],
validate: bool,
) -> Result<Self>
fn abi_decode_raw( selector: [u8; 4], data: &[u8], validate: bool, ) -> Result<Self>
ABI-decodes the given data into one of the variants of
self.source§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
The size of the encoded data, without any selectors.
source§fn abi_encode_raw(&self, out: &mut Vec<u8>)
fn abi_encode_raw(&self, out: &mut Vec<u8>)
ABI-encodes
self into the given buffer, without any selectors.impl Eq for ZenithErrors
impl StructuralPartialEq for ZenithErrors
Auto Trait Implementations§
impl Freeze for ZenithErrors
impl RefUnwindSafe for ZenithErrors
impl Send for ZenithErrors
impl Sync for ZenithErrors
impl Unpin for ZenithErrors
impl UnwindSafe for ZenithErrors
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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