hotstuff_rs::block_tree::accessors::internal

Struct BlockTreeWriteBatch

source
pub struct BlockTreeWriteBatch<W: WriteBatch>(pub(super) W);

Tuple Fields§

§0: W

Implementations§

source§

impl<W: WriteBatch> BlockTreeWriteBatch<W>

source

pub(crate) fn new() -> BlockTreeWriteBatch<W>

source

pub fn new_unsafe() -> BlockTreeWriteBatch<W>

source

pub fn set_block(&mut self, block: &Block) -> Result<(), BlockTreeError>

source

pub fn delete_block(&mut self, block: &CryptoHash, data_len: DataLen)

source

pub fn set_block_at_height( &mut self, height: BlockHeight, block: &CryptoHash, ) -> Result<(), BlockTreeError>

source

pub fn set_children( &mut self, block: &CryptoHash, children: &ChildrenList, ) -> Result<(), BlockTreeError>

source

pub fn delete_children(&mut self, block: &CryptoHash)

source

pub fn set_committed_app_state(&mut self, key: &[u8], value: &[u8])

source

pub fn delete_committed_app_state(&mut self, key: &[u8])

source

pub fn set_pending_app_state_updates( &mut self, block: &CryptoHash, app_state_updates: &AppStateUpdates, ) -> Result<(), KVSetError>

source

pub fn apply_app_state_updates(&mut self, app_state_updates: &AppStateUpdates)

source

pub fn delete_pending_app_state_updates(&mut self, block: &CryptoHash)

source

pub fn set_committed_validator_set( &mut self, validator_set: &ValidatorSet, ) -> Result<(), BlockTreeError>

source

pub fn set_pending_validator_set_updates( &mut self, block: &CryptoHash, validator_set_updates: &ValidatorSetUpdates, ) -> Result<(), BlockTreeError>

source

pub fn set_committed_validator_set_updates( &mut self, block: &CryptoHash, ) -> Result<(), BlockTreeError>

source

pub fn delete_block_validator_set_updates(&mut self, block: &CryptoHash)

source

pub fn set_locked_pc( &mut self, pc: &PhaseCertificate, ) -> Result<(), BlockTreeError>

source

pub fn set_highest_view_entered( &mut self, view: ViewNumber, ) -> Result<(), BlockTreeError>

source

pub fn set_highest_pc( &mut self, pc: &PhaseCertificate, ) -> Result<(), BlockTreeError>

source

pub fn set_highest_committed_block( &mut self, block: &CryptoHash, ) -> Result<(), BlockTreeError>

source

pub fn set_newest_block( &mut self, block: &CryptoHash, ) -> Result<(), BlockTreeError>

source

pub fn set_highest_tc( &mut self, tc: &TimeoutCertificate, ) -> Result<(), BlockTreeError>

source

pub fn set_previous_validator_set( &mut self, validator_set: &ValidatorSet, ) -> Result<(), BlockTreeError>

source

pub fn set_validator_set_update_block_height( &mut self, height: BlockHeight, ) -> Result<(), BlockTreeError>

source

pub fn set_validator_set_update_decided( &mut self, update_complete: bool, ) -> Result<(), BlockTreeError>

source

pub fn set_highest_view_phase_voted( &mut self, view: ViewNumber, ) -> Result<(), BlockTreeError>

Auto Trait Implementations§

§

impl<W> Freeze for BlockTreeWriteBatch<W>
where W: Freeze,

§

impl<W> RefUnwindSafe for BlockTreeWriteBatch<W>
where W: RefUnwindSafe,

§

impl<W> Send for BlockTreeWriteBatch<W>
where W: Send,

§

impl<W> Sync for BlockTreeWriteBatch<W>
where W: Sync,

§

impl<W> Unpin for BlockTreeWriteBatch<W>
where W: Unpin,

§

impl<W> UnwindSafe for BlockTreeWriteBatch<W>
where W: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V