[][src]Struct grin_chain::store::Batch

pub struct Batch<'a> { /* fields omitted */ }

An atomic batch in which all changes can be committed all at once or discarded on error.

Methods

impl<'a> Batch<'a>
[src]

Header of the block at the head of the block chain (not the same thing as header_head).

Head of the header chain (not the same thing as head_header).

Reset sync_head to the current head of the header chain.

Reset header_head to the current head of the body chain.

get block

Save the block and the associated input bitmap. Note: the block header is not saved to the db here, assumes this has already been done.

Delete a full block. Does not delete any record associated with a block header.

Commits this batch. If it's a child batch, it will be merged with the parent, otherwise the batch is written to db.

Creates a child of this batch. It will be merged with its parent on commit, abandoned otherwise.

Auto Trait Implementations

impl<'a> !Send for Batch<'a>

impl<'a> !Sync for Batch<'a>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SafeBorrow for T where
    T: ?Sized

impl<T> UnsafeAny for T where
    T: Any

impl<T> Erased for T

impl<T> Same for T

Should always be Self