Skip to main content

AsyncObjectSource

Trait AsyncObjectSource 

Source
pub trait AsyncObjectSource: Send + Sync {
    // Required method
    fn read_object<'a>(
        &'a self,
        hash: &'a Hash32,
    ) -> impl Future<Output = Result<Option<VerifiedObject>>> + Send + 'a;
}

Required Methods§

Source

fn read_object<'a>( &'a self, hash: &'a Hash32, ) -> impl Future<Output = Result<Option<VerifiedObject>>> + Send + 'a

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§