Trait openethereum::rpc_apis::Dependencies
source · [−]pub trait Dependencies {
type Notifier: ActivityNotifier;
fn activity_notifier(&self) -> Self::Notifier;
fn extend_with_set<S>(
&self,
handler: &mut MetaIoHandler<Metadata, S>,
apis: &HashSet<Api>
)
where
S: Middleware<Metadata>;
}
Expand description
RPC dependencies can be used to initialize RPC endpoints from APIs.
Associated Types
Required methods
fn activity_notifier(&self) -> Self::Notifier
fn activity_notifier(&self) -> Self::Notifier
Create the activity notifier.
fn extend_with_set<S>(
&self,
handler: &mut MetaIoHandler<Metadata, S>,
apis: &HashSet<Api>
) where
S: Middleware<Metadata>,
fn extend_with_set<S>(
&self,
handler: &mut MetaIoHandler<Metadata, S>,
apis: &HashSet<Api>
) where
S: Middleware<Metadata>,
Extend the given I/O handler with endpoints for each API.