Trait re_query::storage_engine::StorageEngineLike

source ·
pub trait StorageEngineLike {
    // Required method
    fn with<F: FnOnce(&ChunkStore, &QueryCache) -> R, R>(&self, f: F) -> R;

    // Provided method
    fn try_with<F: FnOnce(&ChunkStore, &QueryCache) -> R, R>(
        &self,
        f: F
    ) -> Option<R> { ... }
}
Expand description

Anything that can expose references to a [ChunkStore] and its QueryCache.

Used to abstract over StorageEngine and its different types of guards, such as StorageEngineArcReadGuard.

Required Methods§

source

fn with<F: FnOnce(&ChunkStore, &QueryCache) -> R, R>(&self, f: F) -> R

Provided Methods§

source

fn try_with<F: FnOnce(&ChunkStore, &QueryCache) -> R, R>( &self, f: F ) -> Option<R>

Object Safety§

This trait is not object safe.

Implementors§