pub struct BlockHandleStorage { /* private fields */ }Implementations§
Source§impl BlockHandleStorage
impl BlockHandleStorage
pub fn new(db: CoreDb) -> Self
pub fn set_block_committed(&self, handle: &BlockHandle) -> bool
pub fn set_has_shard_state(&self, handle: &BlockHandle) -> bool
pub fn set_block_persistent(&self, handle: &BlockHandle) -> bool
pub fn set_has_persistent_shard_state(&self, handle: &BlockHandle) -> bool
pub fn set_has_persistent_queue_state(&self, handle: &BlockHandle) -> bool
pub fn set_is_zerostate(&self, handle: &BlockHandle) -> bool
pub fn create_or_load_handle( &self, block_id: &BlockId, meta_data: NewBlockMeta, ) -> (BlockHandle, HandleCreationStatus)
pub fn load_handle(&self, block_id: &BlockId) -> Option<BlockHandle>
pub fn store_handle(&self, handle: &BlockHandle, is_new: bool)
pub fn load_key_block_handle(&self, seqno: u32) -> Option<BlockHandle>
pub fn find_last_key_block(&self) -> Option<BlockHandle>
pub fn find_prev_key_block(&self, seqno: u32) -> Option<BlockHandle>
pub fn find_prev_persistent_key_block(&self, seqno: u32) -> Option<BlockHandle>
pub fn key_blocks_iterator( &self, direction: KeyBlocksDirection, ) -> impl Iterator<Item = BlockId> + '_
pub fn gc_handles_cache( &self, mc_seqno: u32, shard_heights: &ShardHeights, ) -> usize
Auto Trait Implementations§
impl Freeze for BlockHandleStorage
impl !RefUnwindSafe for BlockHandleStorage
impl Send for BlockHandleStorage
impl Sync for BlockHandleStorage
impl Unpin for BlockHandleStorage
impl !UnwindSafe for BlockHandleStorage
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more