Struct ckb_store::StoreWriteBatch
source · [−]pub struct StoreWriteBatch { /* private fields */ }
Expand description
TODO(doc): @quake
Implementations
sourceimpl StoreWriteBatch
impl StoreWriteBatch
sourcepub fn put(&mut self, col: Col, key: &[u8], value: &[u8]) -> Result<(), Error>
pub fn put(&mut self, col: Col, key: &[u8], value: &[u8]) -> Result<(), Error>
TODO(doc): @quake
sourcepub fn size_in_bytes(&self) -> usize
pub fn size_in_bytes(&self) -> usize
Return WriteBatch serialized size (in bytes).
sourcepub fn insert_cells(
&mut self,
cells: impl Iterator<Item = (OutPoint, CellEntry, Option<CellDataEntry>)>
) -> Result<(), Error>
pub fn insert_cells(
&mut self,
cells: impl Iterator<Item = (OutPoint, CellEntry, Option<CellDataEntry>)>
) -> Result<(), Error>
TODO(doc): @quake
sourcepub fn delete_cells(
&mut self,
out_points: impl Iterator<Item = OutPoint>
) -> Result<(), Error>
pub fn delete_cells(
&mut self,
out_points: impl Iterator<Item = OutPoint>
) -> Result<(), Error>
TODO(doc): @quake
sourcepub fn delete_block_body(
&mut self,
number: BlockNumber,
hash: &Byte32,
txs_len: u32
) -> Result<(), Error>
pub fn delete_block_body(
&mut self,
number: BlockNumber,
hash: &Byte32,
txs_len: u32
) -> Result<(), Error>
Removes the block body from database with corresponding hash, number and txs number
sourcepub fn delete_block(
&mut self,
number: BlockNumber,
hash: &Byte32,
txs_len: u32
) -> Result<(), Error>
pub fn delete_block(
&mut self,
number: BlockNumber,
hash: &Byte32,
txs_len: u32
) -> Result<(), Error>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more