Skip to main content

ObjectSource

Trait ObjectSource 

Source
pub trait ObjectSource: Send + Sync {
    // Required method
    async fn read_object(&self, hash: &Hash32) -> Result<Option<VerifiedObject>>;
}

Required Methods§

Source

async fn read_object(&self, hash: &Hash32) -> Result<Option<VerifiedObject>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§