Struct ckb_store::StoreWriteBatch [−][src]
pub struct StoreWriteBatch { /* fields omitted */ }Expand description
TODO(doc): @quake
Implementations
impl StoreWriteBatch[src]
impl StoreWriteBatch[src]pub fn put(&mut self, col: Col, key: &[u8], value: &[u8]) -> Result<(), Error>[src]
pub fn put(&mut self, col: Col, key: &[u8], value: &[u8]) -> Result<(), Error>[src]TODO(doc): @quake
pub fn size_in_bytes(&self) -> usize[src]
pub fn size_in_bytes(&self) -> usize[src]Return WriteBatch serialized size (in bytes).
pub fn insert_cells(
&mut self,
cells: impl Iterator<Item = (OutPoint, CellEntry, Option<CellDataEntry>)>
) -> Result<(), Error>[src]
pub fn insert_cells(
&mut self,
cells: impl Iterator<Item = (OutPoint, CellEntry, Option<CellDataEntry>)>
) -> Result<(), Error>[src]TODO(doc): @quake
pub fn delete_cells(
&mut self,
out_points: impl Iterator<Item = OutPoint>
) -> Result<(), Error>[src]
pub fn delete_cells(
&mut self,
out_points: impl Iterator<Item = OutPoint>
) -> Result<(), Error>[src]TODO(doc): @quake
pub fn delete_block_body(
&mut self,
number: BlockNumber,
hash: &Byte32,
txs_len: u32
) -> Result<(), Error>[src]
pub fn delete_block_body(
&mut self,
number: BlockNumber,
hash: &Byte32,
txs_len: u32
) -> Result<(), Error>[src]Removes the block body from database with corresponding hash, number and txs number
pub fn delete_block(
&mut self,
number: BlockNumber,
hash: &Byte32,
txs_len: u32
) -> Result<(), Error>[src]
pub fn delete_block(
&mut self,
number: BlockNumber,
hash: &Byte32,
txs_len: u32
) -> Result<(), Error>[src]Removes the entire block from database with corresponding hash, number and txs number
Auto Trait Implementations
impl RefUnwindSafe for StoreWriteBatch
impl !Send for StoreWriteBatch
impl !Sync for StoreWriteBatch
impl Unpin for StoreWriteBatch
impl UnwindSafe for StoreWriteBatch
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,