Skip to main content

ContentSource

Trait ContentSource 

Source
pub trait ContentSource {
    // Required method
    fn fetch(&self, hash: &ContentHash) -> Option<Vec<u8>>;
}
Expand description

Where a replica gets bytes it does not have: a peer, in practice.

Required Methods§

Source

fn fetch(&self, hash: &ContentHash) -> Option<Vec<u8>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§