Kagome
Polkadot Runtime Engine in C++17
kagome::api::system::request::Peers Struct Referencefinal

Returns currently connected peers. More...

#include <peers.hpp>

Inheritance diagram for kagome::api::system::request::Peers:
Collaboration diagram for kagome::api::system::request::Peers:

Public Member Functions

 Peers (std::shared_ptr< SystemApi > &api)
 
outcome::result< Returnexecute () override
 
- Public Member Functions inherited from kagome::api::details::RequestType< jsonrpc::Value::Array >
 RequestType ()=default
 
 RequestType (const RequestType &)=delete
 
 RequestType (RequestType &&)=delete
 
virtual ~RequestType ()=default
 
RequestTypeoperator= (const RequestType &)=delete
 
RequestTypeoperator= (RequestType &&)=delete
 
outcome::result< void > init (const jsonrpc::Request::Parameters &params)
 
auto getParam () -> typename std::tuple_element< I, decltype(params_)>::type &
 

Private Attributes

std::shared_ptr< SystemApiapi_
 

Additional Inherited Members

- Public Types inherited from kagome::api::details::RequestType< jsonrpc::Value::Array >
using Params = std::tuple< ArgumentTypes... >
 
using Return = jsonrpc::Value::Array
 

Detailed Description

Returns currently connected peers.

See also
https://github.com/w3f/PSPs/blob/master/PSPs/drafts/psp-6.md#1510-system_peers

Definition at line 24 of file peers.hpp.

Constructor & Destructor Documentation

kagome::api::system::request::Peers::Peers ( std::shared_ptr< SystemApi > &  api)
inlineexplicit

Definition at line 25 of file peers.hpp.

Member Function Documentation

outcome::result<Return> kagome::api::system::request::Peers::execute ( )
inlineoverridevirtual

Member Data Documentation

std::shared_ptr<SystemApi> kagome::api::system::request::Peers::api_
private

Definition at line 60 of file peers.hpp.


The documentation for this struct was generated from the following file: