pub enum EngineQueries {
Config(Sender<RollupConfig>),
State(Sender<EngineState>),
OutputAtBlock {
block: BlockNumberOrTag,
sender: Sender<(L2BlockInfo, OutputRoot, EngineState)>,
},
StateReceiver(Sender<Receiver<EngineState>>),
}Expand description
Returns the full engine state.
Variants§
Config(Sender<RollupConfig>)
Returns the rollup config.
State(Sender<EngineState>)
Returns current L2 engine state information.
OutputAtBlock
Returns the L2 output at the specified block with a tuple of the block info and associated engine state.
Fields
§
block: BlockNumberOrTagThe block number or tag of the block to retrieve the output for.
§
sender: Sender<(L2BlockInfo, OutputRoot, EngineState)>A channel to send back the output and engine state.
StateReceiver(Sender<Receiver<EngineState>>)
Returns a subscription to the updates of the engine state.
Implementations§
Source§impl EngineQueries
impl EngineQueries
Sourcepub async fn handle(
self,
state_recv: &Receiver<EngineState>,
client: &Arc<EngineClient>,
rollup_config: &Arc<RollupConfig>,
) -> Result<(), EngineQueriesError>
pub async fn handle( self, state_recv: &Receiver<EngineState>, client: &Arc<EngineClient>, rollup_config: &Arc<RollupConfig>, ) -> Result<(), EngineQueriesError>
Handles the engine query request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngineQueries
impl !RefUnwindSafe for EngineQueries
impl Send for EngineQueries
impl Sync for EngineQueries
impl Unpin for EngineQueries
impl !UnwindSafe for EngineQueries
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> 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