Skip to main content

ProofSource

Trait ProofSource 

Source
pub trait ProofSource: MaybeSend {
    // Required method
    fn read(&mut self, id: Hash) -> BoxFuture<'_, Result<Vec<u8>, ServerError>>;
}
Expand description

Canonical repository objects supplied to a proof builder. Reads verify membership and integrity and share one bounded decode allowance.

Required Methods§

Source

fn read(&mut self, id: Hash) -> BoxFuture<'_, Result<Vec<u8>, ServerError>>

Read one canonical object; never concatenated extracted file bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§