pub struct L1WatcherRpc {
pub inbound_queries: Receiver<L1WatcherQueries>,
/* private fields */
}Expand description
An L1 chain watcher that checks for L1 block updates over RPC.
Fields§
§inbound_queries: Receiver<L1WatcherQueries>The inbound queries to the L1 watcher.
Implementations§
Source§impl L1WatcherRpc
impl L1WatcherRpc
Sourcepub fn new(config: L1WatcherRpcState) -> (L1WatcherRpcInboundChannels, Self)
pub fn new(config: L1WatcherRpcState) -> (L1WatcherRpcInboundChannels, Self)
Creates a new L1WatcherRpc instance.
Trait Implementations§
Source§impl Debug for L1WatcherRpc
impl Debug for L1WatcherRpc
Source§impl NodeActor for L1WatcherRpc
impl NodeActor for L1WatcherRpc
Source§type Error = L1WatcherRpcError<BlockInfo>
type Error = L1WatcherRpcError<BlockInfo>
The error type for the actor.
Source§type InboundData = L1WatcherRpcInboundChannels
type InboundData = L1WatcherRpcInboundChannels
The inbound communication channels used by the actor.
These are the channels that the actor will use to receive messages from other actors.
Source§type OutboundData = L1WatcherRpcContext
type OutboundData = L1WatcherRpcContext
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 = L1WatcherRpcState
type Builder = L1WatcherRpcState
The configuration needed to build the actor.
Source§fn build(config: Self::Builder) -> (Self::InboundData, Self)
fn build(config: Self::Builder) -> (Self::InboundData, Self)
Builds the actor.
Auto Trait Implementations§
impl Freeze for L1WatcherRpc
impl !RefUnwindSafe for L1WatcherRpc
impl Send for L1WatcherRpc
impl Sync for L1WatcherRpc
impl Unpin for L1WatcherRpc
impl !UnwindSafe for L1WatcherRpc
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