pub enum MessageGraphError<E: Debug> {
EmptyDependencySet,
MissingRollupConfig(u64),
InteropProviderError(E),
RemoteMessageNotFound {
chain_id: u64,
message_hash: B256,
},
InvalidMessageOrigin {
expected: Address,
actual: Address,
},
InvalidMessageHash {
expected: B256,
actual: B256,
},
InvalidMessageTimestamp {
expected: u64,
actual: u64,
},
InitiatedTooEarly {
activation_time: u64,
initiating_message_time: u64,
},
MessageInFuture {
max: u64,
actual: u64,
},
MessageExpired {
initiating_timestamp: u64,
executing_timestamp: u64,
},
InvalidMessages(HashMap<u64, MessageGraphError<E>>),
}Expand description
An error type for the MessageGraph struct.
Variants§
EmptyDependencySet
Dependency set is impossibly empty
MissingRollupConfig(u64)
Missing a RollupConfig for a chain ID
InteropProviderError(E)
Interop provider error
RemoteMessageNotFound
Remote message not found
InvalidMessageOrigin
Invalid message origin
InvalidMessageHash
Invalid message payload hash
InvalidMessageTimestamp
Invalid message timestamp
InitiatedTooEarly
Interop has not been activated for at least one block on the initiating message’s chain.
Fields
MessageInFuture
Message is in the future
MessageExpired
Message has exceeded the expiry window.
Fields
InvalidMessages(HashMap<u64, MessageGraphError<E>>)
Invalid messages were found
Trait Implementations§
Source§impl<E: Clone + Debug> Clone for MessageGraphError<E>
impl<E: Clone + Debug> Clone for MessageGraphError<E>
Source§fn clone(&self) -> MessageGraphError<E>
fn clone(&self) -> MessageGraphError<E>
Returns a duplicate 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 moreSource§impl<E> Display for MessageGraphError<E>
impl<E> Display for MessageGraphError<E>
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: Debug> From<E> for MessageGraphError<E>
impl<E: Debug> From<E> for MessageGraphError<E>
impl<E: Eq + Debug> Eq for MessageGraphError<E>
impl<E: Debug> 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