Trait Fetch

Source
pub trait Fetch:
    'static
    + Send
    + Sync
    + Debug {
    // Required method
    fn request_ops(
        &self,
        op_ids: Vec<OpId>,
        source: Url,
    ) -> BoxFut<'_, K2Result<()>>;
}
Expand description

Trait for implementing a fetch module to fetch ops from other agents.

Required Methods§

Source

fn request_ops( &self, op_ids: Vec<OpId>, source: Url, ) -> BoxFut<'_, K2Result<()>>

Add op ids to be fetched from a peer.

Implementors§