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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".