pub struct StorageReport { /* private fields */ }Expand description
StorageReport Live storage snapshot report
Implementations§
Source§impl StorageReport
impl StorageReport
Sourcepub const fn new(
storage_data: Vec<DataStoreSnapshot>,
storage_index: Vec<IndexStoreSnapshot>,
entity_storage: Vec<EntitySnapshot>,
corrupted_keys: u64,
corrupted_entries: u64,
) -> Self
pub const fn new( storage_data: Vec<DataStoreSnapshot>, storage_index: Vec<IndexStoreSnapshot>, entity_storage: Vec<EntitySnapshot>, corrupted_keys: u64, corrupted_entries: u64, ) -> Self
Construct one storage report payload.
Sourcepub const fn storage_data(&self) -> &[DataStoreSnapshot]
pub const fn storage_data(&self) -> &[DataStoreSnapshot]
Borrow data-store snapshots.
Sourcepub const fn storage_index(&self) -> &[IndexStoreSnapshot]
pub const fn storage_index(&self) -> &[IndexStoreSnapshot]
Borrow index-store snapshots.
Sourcepub const fn entity_storage(&self) -> &[EntitySnapshot]
pub const fn entity_storage(&self) -> &[EntitySnapshot]
Borrow entity-level storage snapshots.
Sourcepub const fn corrupted_keys(&self) -> u64
pub const fn corrupted_keys(&self) -> u64
Return count of corrupted decoded data keys.
Sourcepub const fn corrupted_entries(&self) -> u64
pub const fn corrupted_entries(&self) -> u64
Return count of corrupted index entries.
Trait Implementations§
Source§impl CandidType for StorageReport
impl CandidType for StorageReport
Source§impl Clone for StorageReport
impl Clone for StorageReport
Source§fn clone(&self) -> StorageReport
fn clone(&self) -> StorageReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageReport
impl Debug for StorageReport
Source§impl Default for StorageReport
impl Default for StorageReport
Source§fn default() -> StorageReport
fn default() -> StorageReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageReport
impl<'de> Deserialize<'de> for StorageReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StorageReport
impl RefUnwindSafe for StorageReport
impl Send for StorageReport
impl Sync for StorageReport
impl Unpin for StorageReport
impl UnsafeUnpin for StorageReport
impl UnwindSafe for StorageReport
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