Trait holochain_state::prelude::AsP2pAgentStoreConExt[][src]

pub trait AsP2pAgentStoreConExt {
    fn p2p_get_agent(
        &mut self,
        agent: &KitsuneAgent
    ) -> Result<Option<AgentInfoSigned>, DatabaseError>;
fn p2p_list_agents(
        &mut self
    ) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>;
fn p2p_gossip_query_agents(
        &mut self,
        since_ms: u64,
        until_ms: u64,
        arcset: DhtArcSet
    ) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>;
fn p2p_query_near_basis(
        &mut self,
        basis: u32,
        limit: u32
    ) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>; }
Expand description

Extension trait to treat connection instances as p2p store accessors.

Required methods

Get an AgentInfoSigned record from the p2p_store

List all AgentInfoSigned records within a space in the p2p_agent_store

Query agent list for gossip

Query agents sorted by nearness to basis loc

Implementations on Foreign Types

Implementors