Trait fc_rpc::NetApiServer [−][src]
Net rpc interface.
Required methods
pub fn version(&self) -> Result<String, Error>[src]
Returns protocol version.
pub fn peer_count(&self) -> Result<u32, Error>[src]
Returns number of peers connected to node.
pub fn is_listening(&self) -> Result<bool, Error>[src]
Returns true if client is actively listening for network connections. Otherwise false.
Provided methods
pub fn to_delegate<M>(self) -> IoDelegate<Self, M> where
M: Metadata, [src]
M: Metadata,
Create an IoDelegate, wiring rpc calls to the trait methods.
Implementors
impl<B: BlockT, BE, C, H: ExHashT> NetApi for NetApi<B, BE, C, H> where
C: ProvideRuntimeApi<B> + StorageProvider<B, BE> + AuxStore,
C: HeaderBackend<B> + HeaderMetadata<B, Error = BlockChainError> + 'static,
C::Api: EthereumRuntimeRPCApi<B>,
BE: Backend<B> + 'static,
BE::State: StateBackend<BlakeTwo256>,
C: Send + Sync + 'static,
B: BlockT<Hash = H256> + Send + Sync + 'static, [src]
C: ProvideRuntimeApi<B> + StorageProvider<B, BE> + AuxStore,
C: HeaderBackend<B> + HeaderMetadata<B, Error = BlockChainError> + 'static,
C::Api: EthereumRuntimeRPCApi<B>,
BE: Backend<B> + 'static,
BE::State: StateBackend<BlakeTwo256>,
C: Send + Sync + 'static,
B: BlockT<Hash = H256> + Send + Sync + 'static,