pub struct Manager { /* private fields */ }
Expand description
A process is only permitted to have one open handle to each database. This manager exists to enforce that constraint: don’t open databases directly.
Implementations
sourceimpl Manager
impl Manager
sourcepub fn get<P>(&self, path: P) -> Result<Option<Arc<RwLock<Store>>>, Error>where
P: AsRef<Path>,
pub fn get<P>(&self, path: P) -> Result<Option<Arc<RwLock<Store>>>, Error>where
P: AsRef<Path>,
Return the open store at path
, returning None
if it has not already been opened.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl UnwindSafe for Manager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more