pub struct OwnedWriteBatch { /* private fields */ }Expand description
An atomic write batch
Allows atomically writing across keyspaces inside the Database.
Implementations§
Source§impl WriteBatch
impl WriteBatch
Sourcepub fn with_capacity(db: Database, capacity: usize) -> Self
pub fn with_capacity(db: Database, capacity: usize) -> Self
Initializes a new write batch with preallocated capacity.
§Note
“Capacity” refers to the number of batch item slots, not their size in memory.
Sourcepub fn durability(self, mode: Option<PersistMode>) -> Self
pub fn durability(self, mode: Option<PersistMode>) -> Self
Sets the durability level.
Auto Trait Implementations§
impl Freeze for WriteBatch
impl !RefUnwindSafe for WriteBatch
impl Send for WriteBatch
impl Sync for WriteBatch
impl Unpin for WriteBatch
impl !UnwindSafe for WriteBatch
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