[−][src]Struct rkv::Manager
Methods
impl Manager
[src]
pub fn singleton() -> &'static RwLock<Manager>
[src]
pub fn get<'p, P>(&self, path: P) -> Result<Option<Arc<RwLock<Rkv>>>, Error> where
P: Into<&'p Path>,
[src]
P: Into<&'p Path>,
Return the open env at path
, returning None
if it has not already been opened.
pub fn get_or_create<'p, F, P>(
&mut self,
path: P,
f: F
) -> Result<Arc<RwLock<Rkv>>, StoreError> where
F: FnOnce(&Path) -> Result<Rkv, StoreError>,
P: Into<&'p Path>,
[src]
&mut self,
path: P,
f: F
) -> Result<Arc<RwLock<Rkv>>, StoreError> where
F: FnOnce(&Path) -> Result<Rkv, StoreError>,
P: Into<&'p Path>,
Return the open env at path
, or create it by calling f
.
pub fn get_or_create_with_capacity<'p, F, P>(
&mut self,
path: P,
capacity: c_uint,
f: F
) -> Result<Arc<RwLock<Rkv>>, StoreError> where
F: FnOnce(&Path, c_uint) -> Result<Rkv, StoreError>,
P: Into<&'p Path>,
[src]
&mut self,
path: P,
capacity: c_uint,
f: F
) -> Result<Arc<RwLock<Rkv>>, StoreError> where
F: FnOnce(&Path, c_uint) -> Result<Rkv, StoreError>,
P: Into<&'p Path>,
Return the open env at path
with capacity capacity
,
or create it by calling f
.
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,