pub struct EngineContext {
pub cancellation: CancellationToken,
pub engine_unsafe_head_tx: Option<Sender<L2BlockInfo>>,
pub engine_l2_safe_head_tx: Sender<L2BlockInfo>,
pub sync_complete_tx: Sender<()>,
pub derivation_signal_tx: Sender<Signal>,
}Expand description
The communication context used by the engine actor.
Fields§
§cancellation: CancellationTokenThe cancellation token, shared between all tasks.
engine_unsafe_head_tx: Option<Sender<L2BlockInfo>>A sender for L2 unsafe head update notifications. Is optional because it is only used in sequencer mode.
engine_l2_safe_head_tx: Sender<L2BlockInfo>The sender for L2 safe head update notifications.
sync_complete_tx: Sender<()>A channel to send a signal that EL sync has completed. Informs the derivation actor to
start. Because the EL sync state machine within InnerEngineState can only complete
once, this channel is consumed after the first successful send. Future cases where EL
sync is re-triggered can occur, but we will not block derivation on it.
derivation_signal_tx: Sender<Signal>A way for the engine actor to send a Signal back to the derivation actor.
Trait Implementations§
Source§impl CancellableContext for EngineContext
impl CancellableContext for EngineContext
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 EngineContext
impl !RefUnwindSafe for EngineContext
impl Send for EngineContext
impl Sync for EngineContext
impl Unpin for EngineContext
impl !UnwindSafe for EngineContext
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