rerun::external::re_entity_db::external::re_query

Trait StorageEngineLike

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

    // Provided method
    fn try_with<F, R>(&self, f: F) -> Option<R>
       where F: FnOnce(&ChunkStore, &QueryCache) -> 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, R>(&self, f: F) -> R
where F: FnOnce(&ChunkStore, &QueryCache) -> R,

Provided Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§