Struct rkv::store::multi::MultiStore
source · pub struct MultiStore<D> { /* private fields */ }
Implementations
sourceimpl<D> MultiStore<D>where
D: BackendDatabase,
impl<D> MultiStore<D>where
D: BackendDatabase,
sourcepub fn get<'r, R, I, C, K>(
&self,
reader: &'r R,
k: K
) -> Result<Iter<'r, I>, StoreError>where
R: Readable<'r, Database = D, RoCursor = C>,
I: BackendIter<'r>,
C: BackendRoCursor<'r, Iter = I>,
K: AsRef<[u8]> + 'r,
pub fn get<'r, R, I, C, K>(
&self,
reader: &'r R,
k: K
) -> Result<Iter<'r, I>, StoreError>where
R: Readable<'r, Database = D, RoCursor = C>,
I: BackendIter<'r>,
C: BackendRoCursor<'r, Iter = I>,
K: AsRef<[u8]> + 'r,
Provides a cursor to all of the values for the duplicate entries that match this key
sourcepub fn get_first<'r, R, K>(
&self,
reader: &'r R,
k: K
) -> Result<Option<Value<'r>>, StoreError>where
R: Readable<'r, Database = D>,
K: AsRef<[u8]>,
pub fn get_first<'r, R, K>(
&self,
reader: &'r R,
k: K
) -> Result<Option<Value<'r>>, StoreError>where
R: Readable<'r, Database = D>,
K: AsRef<[u8]>,
Provides the first value that matches this key
sourcepub fn put<T, K>(
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>
) -> Result<(), StoreError>where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
pub fn put<T, K>(
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>
) -> Result<(), StoreError>where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
Insert a value at the specified key.
This put will allow duplicate entries. If you wish to have duplicate entries
rejected, use the put_with_flags
function and specify NO_DUP_DATA
pub fn put_with_flags<T, K>(
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>,
flags: T::Flags
) -> Result<(), StoreError>where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
pub fn delete_all<T, K>(
&self,
writer: &mut Writer<T>,
k: K
) -> Result<(), StoreError>where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
pub fn delete<T, K>(
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>
) -> Result<(), StoreError>where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
pub fn clear<T>(&self, writer: &mut Writer<T>) -> Result<(), StoreError>where
T: BackendRwTransaction<Database = D>,
Trait Implementations
sourceimpl<D: Clone> Clone for MultiStore<D>
impl<D: Clone> Clone for MultiStore<D>
sourcefn clone(&self) -> MultiStore<D>
fn clone(&self) -> MultiStore<D>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<D: Debug> Debug for MultiStore<D>
impl<D: Debug> Debug for MultiStore<D>
sourceimpl<D: PartialEq> PartialEq<MultiStore<D>> for MultiStore<D>
impl<D: PartialEq> PartialEq<MultiStore<D>> for MultiStore<D>
sourcefn eq(&self, other: &MultiStore<D>) -> bool
fn eq(&self, other: &MultiStore<D>) -> bool
impl<D: Copy> Copy for MultiStore<D>
impl<D: Eq> Eq for MultiStore<D>
impl<D> StructuralEq for MultiStore<D>
impl<D> StructuralPartialEq for MultiStore<D>
Auto Trait Implementations
impl<D> RefUnwindSafe for MultiStore<D>where
D: RefUnwindSafe,
impl<D> Send for MultiStore<D>where
D: Send,
impl<D> Sync for MultiStore<D>where
D: Sync,
impl<D> Unpin for MultiStore<D>where
D: Unpin,
impl<D> UnwindSafe for MultiStore<D>where
D: UnwindSafe,
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