pub struct SequencerContext {
pub cancellation: CancellationToken,
pub l1_head_rx: Receiver<Option<BlockInfo>>,
pub reset_request_tx: Sender<()>,
pub build_request_tx: Sender<(OpAttributesWithParent, Sender<OpExecutionPayloadEnvelope>)>,
pub gossip_payload_tx: Sender<OpExecutionPayloadEnvelope>,
}Expand description
The communication context used by the SequencerActor.
Fields§
§cancellation: CancellationTokenThe cancellation token, shared between all tasks.
l1_head_rx: Receiver<Option<BlockInfo>>Watch channel to observe the L1 head of the chain.
reset_request_tx: Sender<()>Sender to request the engine to reset.
build_request_tx: Sender<(OpAttributesWithParent, Sender<OpExecutionPayloadEnvelope>)>Sender to request the execution layer to build a payload attributes on top of the current unsafe head.
gossip_payload_tx: Sender<OpExecutionPayloadEnvelope>A sender to asynchronously sign and gossip built OpExecutionPayloadEnvelopes to the
network actor.
Trait Implementations§
Source§impl CancellableContext for SequencerContext
impl CancellableContext for SequencerContext
Source§fn cancelled(&self) -> WaitForCancellationFuture<'_>
fn cancelled(&self) -> WaitForCancellationFuture<'_>
Returns a future that resolves when the actor is cancelled.
Auto Trait Implementations§
impl Freeze for SequencerContext
impl !RefUnwindSafe for SequencerContext
impl Send for SequencerContext
impl Sync for SequencerContext
impl Unpin for SequencerContext
impl !UnwindSafe for SequencerContext
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