pub struct L1WatcherRpcContext {
pub latest_head: Sender<Option<BlockInfo>>,
pub latest_finalized: Sender<Option<BlockInfo>>,
pub block_signer_sender: Sender<Address>,
pub cancellation: CancellationToken,
}Expand description
The communication context used by the L1 watcher actor.
Fields§
§latest_head: Sender<Option<BlockInfo>>The latest L1 head block.
latest_finalized: Sender<Option<BlockInfo>>The latest L1 finalized block.
block_signer_sender: Sender<Address>The block signer sender.
cancellation: CancellationTokenThe cancellation token, shared between all tasks.
Trait Implementations§
Source§impl CancellableContext for L1WatcherRpcContext
impl CancellableContext for L1WatcherRpcContext
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 L1WatcherRpcContext
impl !RefUnwindSafe for L1WatcherRpcContext
impl Send for L1WatcherRpcContext
impl Sync for L1WatcherRpcContext
impl Unpin for L1WatcherRpcContext
impl !UnwindSafe for L1WatcherRpcContext
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