Struct openethereum::rpc_apis::FullDependencies
source · [−]pub struct FullDependencies {Show 19 fields
pub signer_service: Arc<SignerService>,
pub client: Arc<Client>,
pub snapshot: Arc<dyn SnapshotService>,
pub sync: Arc<dyn SyncProvider>,
pub net: Arc<dyn ManageNetwork>,
pub accounts: Arc<AccountProvider>,
pub miner: Arc<Miner>,
pub external_miner: Arc<ExternalMiner>,
pub logger: Arc<RotatingLogger>,
pub settings: Arc<NetworkSettings>,
pub net_service: Arc<dyn ManageNetwork>,
pub experimental_rpcs: bool,
pub ws_address: Option<Host>,
pub fetch: FetchClient,
pub executor: Executor,
pub gas_price_percentile: usize,
pub poll_lifetime: u32,
pub allow_missing_blocks: bool,
pub no_ancient_blocks: bool,
}
Expand description
RPC dependencies for a full node.
Fields
signer_service: Arc<SignerService>
client: Arc<Client>
snapshot: Arc<dyn SnapshotService>
sync: Arc<dyn SyncProvider>
net: Arc<dyn ManageNetwork>
accounts: Arc<AccountProvider>
miner: Arc<Miner>
external_miner: Arc<ExternalMiner>
logger: Arc<RotatingLogger>
settings: Arc<NetworkSettings>
net_service: Arc<dyn ManageNetwork>
experimental_rpcs: bool
ws_address: Option<Host>
fetch: FetchClient
executor: Executor
gas_price_percentile: usize
poll_lifetime: u32
allow_missing_blocks: bool
no_ancient_blocks: bool
Implementations
sourceimpl FullDependencies
impl FullDependencies
fn extend_api<S>(
&self,
handler: &mut MetaIoHandler<Metadata, S>,
apis: &HashSet<Api>,
for_generic_pubsub: bool
) where
S: Middleware<Metadata>,
Trait Implementations
sourceimpl Dependencies for FullDependencies
impl Dependencies for FullDependencies
type Notifier = ClientNotifier
sourcefn activity_notifier(&self) -> ClientNotifier
fn activity_notifier(&self) -> ClientNotifier
Create the activity notifier.
sourcefn 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.
Auto Trait Implementations
impl !RefUnwindSafe for FullDependencies
impl Send for FullDependencies
impl Sync for FullDependencies
impl Unpin for FullDependencies
impl !UnwindSafe for FullDependencies
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more