pub struct ShardStateStorage { /* private fields */ }Implementations§
Source§impl ShardStateStorage
impl ShardStateStorage
pub fn new( cells_db: CellsDb, block_handle_storage: Arc<BlockHandleStorage>, block_storage: Arc<BlockStorage>, temp_file_storage: TempFileStorage, cache_size_bytes: ByteSize, drop_interval: u32, ) -> Result<Arc<Self>>
pub fn metrics(&self) -> ShardStateStorageMetrics
pub fn min_ref_mc_state(&self) -> &MinRefMcStateTracker
pub async fn store_state( &self, handle: &BlockHandle, state: &ShardStateStuff, hint: StoreStateHint, ) -> Result<bool>
pub async fn store_state_root( &self, handle: &BlockHandle, root_cell: Cell, hint: StoreStateHint, ) -> Result<bool>
pub async fn store_state_file( &self, block_id: &BlockId, boc: File, ) -> Result<HashBytes>
pub async fn load_state( &self, ref_by_mc_seqno: u32, block_id: &BlockId, ) -> Result<ShardStateStuff>
pub fn load_state_root_hash(&self, block_id: &BlockId) -> Result<HashBytes>
pub async fn remove_outdated_states(&self, mc_seqno: u32) -> Result<()>
Auto Trait Implementations§
impl !Freeze for ShardStateStorage
impl !RefUnwindSafe for ShardStateStorage
impl Send for ShardStateStorage
impl Sync for ShardStateStorage
impl Unpin for ShardStateStorage
impl !UnwindSafe for ShardStateStorage
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