pub struct RawBytesOptions<'env> { /* private fields */ }Expand description
Options for pure raw bytes databases (no serialization)
Implementations§
Source§impl RawBytesOptions<'_>
impl RawBytesOptions<'_>
Sourcepub fn unnamed_for_default(self) -> Self
pub fn unnamed_for_default(self) -> Self
Use unnamed database for default scope instead of a named database This is useful for backward compatibility with existing LMDB databases that store data in the unnamed database
Sourcepub fn create(
self,
txn: &mut RwTxn<'_>,
) -> Result<ScopedBytesDatabase, ScopedDbError>
pub fn create( self, txn: &mut RwTxn<'_>, ) -> Result<ScopedBytesDatabase, ScopedDbError>
Create the database with the current transaction
Auto Trait Implementations§
impl<'env> Freeze for RawBytesOptions<'env>
impl<'env> RefUnwindSafe for RawBytesOptions<'env>
impl<'env> Send for RawBytesOptions<'env>
impl<'env> Sync for RawBytesOptions<'env>
impl<'env> Unpin for RawBytesOptions<'env>
impl<'env> UnsafeUnpin for RawBytesOptions<'env>
impl<'env> UnwindSafe for RawBytesOptions<'env>
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