Skip to main content

ChunkHas

Trait ChunkHas 

Source
pub trait ChunkHas<const BODY_SIZE: usize = DEFAULT_BODY_SIZE>: Send + Sync {
    // Required method
    fn has(&self, address: &ChunkAddress) -> impl Future<Output = bool> + Send;
}
Expand description

Async chunk existence check (primary API).

Required Methods§

Source

fn has(&self, address: &ChunkAddress) -> impl Future<Output = bool> + Send

Check if a chunk exists.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T, const BS: usize> ChunkHas<BS> for T
where T: SyncChunkHas<BS> + Send + Sync,