Trait fc_rpc::NetApiServer[][src]

pub trait NetApiServer: 'static + Send + Sync {
    pub fn version(&self) -> Result<String, Error>;
pub fn peer_count(&self) -> Result<u32, Error>;
pub fn is_listening(&self) -> Result<bool, Error>; pub fn to_delegate<M>(self) -> IoDelegate<Self, M>
    where
        M: Metadata
, { ... } }

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.

Loading content...

Provided methods

pub fn to_delegate<M>(self) -> IoDelegate<Self, M> where
    M: Metadata
[src]

Create an IoDelegate, wiring rpc calls to the trait methods.

Loading content...

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]

Loading content...