pub trait ChordStorageInterfaceCacheChecker {
    // Required method
    fn storage_check_cache<'life0, 'async_trait>(
        &'life0 self,
        vid: Did
    ) -> Pin<Box<dyn Future<Output = Option<VirtualNode>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

ChordStorageInterfaceCacheChecker defines the interface for checking the local cache of the DHT.

Required Methods§

source

fn storage_check_cache<'life0, 'async_trait>( &'life0 self, vid: Did ) -> Pin<Box<dyn Future<Output = Option<VirtualNode>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

Returns an optional VirtualNode representing the cached data, or None if it is not found.

Implementors§