pub struct RpcContext {
pub p2p_network: Sender<P2pRpcRequest>,
pub network_admin: Sender<NetworkAdminQuery>,
pub sequencer_admin: Option<Sender<SequencerAdminQuery>>,
pub l1_watcher_queries: Sender<L1WatcherQueries>,
pub engine_query: Sender<EngineQueries>,
pub cancellation: CancellationToken,
}Expand description
The communication context used by the RPC actor.
Fields§
§p2p_network: Sender<P2pRpcRequest>The network p2p rpc sender.
network_admin: Sender<NetworkAdminQuery>The network admin rpc sender.
sequencer_admin: Option<Sender<SequencerAdminQuery>>The sequencer admin rpc sender.
l1_watcher_queries: Sender<L1WatcherQueries>The l1 watcher queries sender.
engine_query: Sender<EngineQueries>The engine query sender.
cancellation: CancellationTokenThe cancellation token, shared between all tasks.
Trait Implementations§
Source§impl CancellableContext for RpcContext
impl CancellableContext for RpcContext
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 RpcContext
impl RefUnwindSafe for RpcContext
impl Send for RpcContext
impl Sync for RpcContext
impl Unpin for RpcContext
impl UnwindSafe for RpcContext
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