Trait holochain_types::env::AsP2pStateTxExt[][src]

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

Extension trait to treat transaction 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

Extrapolate coverage from agents within our own storage arc

Implementations on Foreign Types

Implementors