time_primitives

Trait MembersApi

Source
pub trait MembersApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn member_peer_id(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account: &AccountId,
    ) -> Result<Option<PeerId>, ApiError> { ... }
    fn heartbeat_timeout(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<BlockNumber, ApiError> { ... }
}

Provided Methods§

Source

fn member_peer_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: &AccountId, ) -> Result<Option<PeerId>, ApiError>

Source

fn heartbeat_timeout( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<BlockNumber, ApiError>

Trait Implementations§

Source§

impl<Block: BlockT> RuntimeApiInfo for dyn MembersApi<Block>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§