Report

Trait Report 

Source
pub trait Report:
    'static
    + Send
    + Sync
    + Debug {
    // Provided methods
    fn space(&self, _space_id: SpaceId, _local_agent_store: DynLocalAgentStore) { ... }
    fn fetched_op(
        &self,
        _space_id: SpaceId,
        _source: Url,
        _op_id: OpId,
        _size_bytes: u64,
    ) { ... }
}
Expand description

Trait for implementing a report module in kitsune2.

The first implemented report gathers op count and bytes transferred about ops fetched either as part of gossip or publish operations.

Provided Methods§

Source

fn space(&self, _space_id: SpaceId, _local_agent_store: DynLocalAgentStore)

Notify that a space was created.

Source

fn fetched_op( &self, _space_id: SpaceId, _source: Url, _op_id: OpId, _size_bytes: u64, )

Notify that we have fetched op data from a remote peer.

Implementors§