pub struct StoreWriteBatch { /* private fields */ }Expand description
A physical Store write batch assembled from one or more logical clients.
Use Self::push with the specific prefixed client that produced each
logical key, then Self::commit once to submit all rows in one atomic
Store Put.
Implementations§
Source§impl StoreWriteBatch
impl StoreWriteBatch
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn push( &mut self, client: &StoreClient, key: &Key, value: &[u8], ) -> Result<&mut Self, ClientError>
pub async fn commit(&self, client: &StoreClient) -> Result<u64, ClientError>
Trait Implementations§
Source§impl Clone for StoreWriteBatch
impl Clone for StoreWriteBatch
Source§fn clone(&self) -> StoreWriteBatch
fn clone(&self) -> StoreWriteBatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoreWriteBatch
impl Debug for StoreWriteBatch
Source§impl Default for StoreWriteBatch
impl Default for StoreWriteBatch
Source§fn default() -> StoreWriteBatch
fn default() -> StoreWriteBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StoreWriteBatch
impl RefUnwindSafe for StoreWriteBatch
impl Send for StoreWriteBatch
impl Sync for StoreWriteBatch
impl Unpin for StoreWriteBatch
impl UnsafeUnpin for StoreWriteBatch
impl UnwindSafe for StoreWriteBatch
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