pub enum MessageGraphError<E> {
EmptyDependencySet,
RemoteMessageNotFound(u64, FixedBytes<32>),
InvalidMessageOrigin(Address, Address),
InvalidMessageHash(FixedBytes<32>, FixedBytes<32>),
InvalidMessageTimestamp(u64, u64),
MessageInFuture(u64, u64),
InvalidMessages(Vec<u64>),
MissingRollupConfig(u64),
InteropProviderError(E),
}Expand description
An error type for the MessageGraph struct.
Variants§
EmptyDependencySet
Dependency set is impossibly empty
RemoteMessageNotFound(u64, FixedBytes<32>)
Remote message not found
InvalidMessageOrigin(Address, Address)
Invalid message origin
InvalidMessageHash(FixedBytes<32>, FixedBytes<32>)
Invalid message payload hash
InvalidMessageTimestamp(u64, u64)
Invalid message timestamp
MessageInFuture(u64, u64)
Message is in the future
InvalidMessages(Vec<u64>)
Invalid messages were found
MissingRollupConfig(u64)
Missing a RollupConfig for a chain ID
InteropProviderError(E)
Interop provider error
Trait Implementations§
Source§impl<E> Clone for MessageGraphError<E>where
E: Clone,
impl<E> Clone for MessageGraphError<E>where
E: Clone,
Source§fn clone(&self) -> MessageGraphError<E>
fn clone(&self) -> MessageGraphError<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E> Debug for MessageGraphError<E>where
E: Debug,
impl<E> Debug for MessageGraphError<E>where
E: Debug,
Source§impl<E> Display for MessageGraphError<E>where
E: Display,
impl<E> Display for MessageGraphError<E>where
E: Display,
Source§impl<E> Error for MessageGraphError<E>
impl<E> Error for MessageGraphError<E>
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<E> From<E> for MessageGraphError<E>
impl<E> From<E> for MessageGraphError<E>
Source§fn from(source: E) -> MessageGraphError<E>
fn from(source: E) -> MessageGraphError<E>
Converts to this type from the input type.
Source§impl<E> PartialEq for MessageGraphError<E>where
E: PartialEq,
impl<E> PartialEq for MessageGraphError<E>where
E: PartialEq,
impl<E> Eq for MessageGraphError<E>where
E: Eq,
impl<E> StructuralPartialEq for MessageGraphError<E>
Auto Trait Implementations§
impl<E> Freeze for MessageGraphError<E>where
E: Freeze,
impl<E> RefUnwindSafe for MessageGraphError<E>where
E: RefUnwindSafe,
impl<E> Send for MessageGraphError<E>where
E: Send,
impl<E> Sync for MessageGraphError<E>where
E: Sync,
impl<E> Unpin for MessageGraphError<E>where
E: Unpin,
impl<E> UnwindSafe for MessageGraphError<E>where
E: UnwindSafe,
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> 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