pub struct BlockTreeWriteBatch<W: WriteBatch>(pub(super) W);
Tuple Fields§
§0: W
Implementations§
source§impl<W: WriteBatch> BlockTreeWriteBatch<W>
impl<W: WriteBatch> BlockTreeWriteBatch<W>
pub(crate) fn new() -> BlockTreeWriteBatch<W>
pub fn new_unsafe() -> BlockTreeWriteBatch<W>
pub fn set_block(&mut self, block: &Block) -> Result<(), BlockTreeError>
pub fn delete_block(&mut self, block: &CryptoHash, data_len: DataLen)
pub fn set_block_at_height( &mut self, height: BlockHeight, block: &CryptoHash, ) -> Result<(), BlockTreeError>
pub fn set_children( &mut self, block: &CryptoHash, children: &ChildrenList, ) -> Result<(), BlockTreeError>
pub fn delete_children(&mut self, block: &CryptoHash)
pub fn set_committed_app_state(&mut self, key: &[u8], value: &[u8])
pub fn delete_committed_app_state(&mut self, key: &[u8])
pub fn set_pending_app_state_updates( &mut self, block: &CryptoHash, app_state_updates: &AppStateUpdates, ) -> Result<(), KVSetError>
pub fn apply_app_state_updates(&mut self, app_state_updates: &AppStateUpdates)
pub fn delete_pending_app_state_updates(&mut self, block: &CryptoHash)
pub fn set_committed_validator_set( &mut self, validator_set: &ValidatorSet, ) -> Result<(), BlockTreeError>
pub fn set_pending_validator_set_updates( &mut self, block: &CryptoHash, validator_set_updates: &ValidatorSetUpdates, ) -> Result<(), BlockTreeError>
pub fn set_committed_validator_set_updates( &mut self, block: &CryptoHash, ) -> Result<(), BlockTreeError>
pub fn delete_block_validator_set_updates(&mut self, block: &CryptoHash)
pub fn set_locked_pc( &mut self, pc: &PhaseCertificate, ) -> Result<(), BlockTreeError>
pub fn set_highest_view_entered( &mut self, view: ViewNumber, ) -> Result<(), BlockTreeError>
pub fn set_highest_pc( &mut self, pc: &PhaseCertificate, ) -> Result<(), BlockTreeError>
pub fn set_highest_committed_block( &mut self, block: &CryptoHash, ) -> Result<(), BlockTreeError>
pub fn set_newest_block( &mut self, block: &CryptoHash, ) -> Result<(), BlockTreeError>
pub fn set_highest_tc( &mut self, tc: &TimeoutCertificate, ) -> Result<(), BlockTreeError>
pub fn set_previous_validator_set( &mut self, validator_set: &ValidatorSet, ) -> Result<(), BlockTreeError>
pub fn set_validator_set_update_block_height( &mut self, height: BlockHeight, ) -> Result<(), BlockTreeError>
pub fn set_validator_set_update_decided( &mut self, update_complete: bool, ) -> Result<(), BlockTreeError>
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> 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