pub struct StoreRegistry { /* private fields */ }Expand description
StoreRegistry
Thread-local registry for both row and index stores.
Implementations§
Source§impl StoreRegistry
impl StoreRegistry
Sourcepub fn iter(&self) -> impl Iterator<Item = (&'static str, StoreHandle)>
pub fn iter(&self) -> impl Iterator<Item = (&'static str, StoreHandle)>
Iterate registered stores.
Sourcepub fn register_store(
&mut self,
name: &'static str,
data: &'static LocalKey<RefCell<DataStore>>,
index: &'static LocalKey<RefCell<IndexStore>>,
) -> Result<(), InternalError>
pub fn register_store( &mut self, name: &'static str, data: &'static LocalKey<RefCell<DataStore>>, index: &'static LocalKey<RefCell<IndexStore>>, ) -> Result<(), InternalError>
Register a Store path to its row/index store pair.
Sourcepub fn try_get_store(&self, path: &str) -> Result<StoreHandle, InternalError>
pub fn try_get_store(&self, path: &str) -> Result<StoreHandle, InternalError>
Look up a store handle by path.
Trait Implementations§
Source§impl Default for StoreRegistry
impl Default for StoreRegistry
Source§fn default() -> StoreRegistry
fn default() -> StoreRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StoreRegistry
impl RefUnwindSafe for StoreRegistry
impl Send for StoreRegistry
impl Sync for StoreRegistry
impl Unpin for StoreRegistry
impl UnsafeUnpin for StoreRegistry
impl UnwindSafe for StoreRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more