iroh_blobs::api::downloader

Trait ContentDiscovery

Source
pub trait ContentDiscovery:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn find_providers(&self, hash: HashAndFormat) -> Boxed<NodeId>;
}
Expand description

Trait for pluggable content discovery strategies.

Required Methods§

Source

fn find_providers(&self, hash: HashAndFormat) -> Boxed<NodeId>

Implementors§

Source§

impl ContentDiscovery for Shuffled

Source§

impl<C, I> ContentDiscovery for C
where C: Debug + Clone + IntoIterator<Item = I> + Send + Sync + 'static, C::IntoIter: Send + Sync + 'static, I: Into<NodeId> + Send + Sync + 'static,