pub struct SequencerActor<AB: AttributesBuilderConfig> {
pub builder: AB,
pub unsafe_head_rx: Receiver<L2BlockInfo>,
pub admin_query_rx: Receiver<SequencerAdminQuery>,
}Expand description
The SequencerActor is responsible for building L2 blocks on top of the current unsafe head
and scheduling them to be signed and gossipped by the P2P layer, extending the L2 chain with new
blocks.
Fields§
§builder: AB§unsafe_head_rx: Receiver<L2BlockInfo>Watch channel to observe the unsafe head of the engine.
admin_query_rx: Receiver<SequencerAdminQuery>Channel to receive admin queries from the sequencer actor.
Implementations§
Source§impl<AB: AttributesBuilderConfig> SequencerActor<AB>
impl<AB: AttributesBuilderConfig> SequencerActor<AB>
Sourcepub fn new(state: AB) -> (SequencerInboundData, Self)
pub fn new(state: AB) -> (SequencerInboundData, Self)
Creates a new instance of the SequencerActor.
Trait Implementations§
Source§impl<AB: Debug + AttributesBuilderConfig> Debug for SequencerActor<AB>
impl<AB: Debug + AttributesBuilderConfig> Debug for SequencerActor<AB>
Source§impl NodeActor for SequencerActor<SequencerBuilder>
impl NodeActor for SequencerActor<SequencerBuilder>
Source§type Error = SequencerActorError
type Error = SequencerActorError
The error type for the actor.
Source§type OutboundData = SequencerContext
type OutboundData = SequencerContext
The communication context used by the actor.
These are the channels that the actor will use to send messages to other actors.
Source§type Builder = SequencerBuilder
type Builder = SequencerBuilder
The configuration needed to build the actor.
Source§type InboundData = SequencerInboundData
type InboundData = SequencerInboundData
The inbound communication channels used by the actor.
These are the channels that the actor will use to receive messages from other actors.
Source§fn build(config: Self::Builder) -> (Self::InboundData, Self)
fn build(config: Self::Builder) -> (Self::InboundData, Self)
Builds the actor.
Auto Trait Implementations§
impl<AB> Freeze for SequencerActor<AB>where
AB: Freeze,
impl<AB> !RefUnwindSafe for SequencerActor<AB>
impl<AB> Send for SequencerActor<AB>where
AB: Send,
impl<AB> Sync for SequencerActor<AB>where
AB: Sync,
impl<AB> Unpin for SequencerActor<AB>where
AB: Unpin,
impl<AB> !UnwindSafe for SequencerActor<AB>
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