pub struct DiagnosticStableCell {
pub status: DiagnosticStableCellStatus,
pub memory_size: DiagnosticMemorySize,
pub error: Option<String>,
}Expand description
DiagnosticStableCell
Read-only diagnostic view of the stable-cell ledger storage envelope.
Fields§
§status: DiagnosticStableCellStatusStable-cell status.
memory_size: DiagnosticMemorySizeBacking memory size for the ledger cell.
error: Option<String>Decode error when the stable cell was not readable.
Implementations§
Source§impl DiagnosticStableCell
impl DiagnosticStableCell
Sourcepub const fn new(
status: DiagnosticStableCellStatus,
memory_size: DiagnosticMemorySize,
error: Option<String>,
) -> Self
pub const fn new( status: DiagnosticStableCellStatus, memory_size: DiagnosticMemorySize, error: Option<String>, ) -> Self
Build a stable-cell diagnostic.
Trait Implementations§
Source§impl Clone for DiagnosticStableCell
impl Clone for DiagnosticStableCell
Source§fn clone(&self) -> DiagnosticStableCell
fn clone(&self) -> DiagnosticStableCell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiagnosticStableCell
impl Debug for DiagnosticStableCell
Source§impl<'de> Deserialize<'de> for DiagnosticStableCell
impl<'de> Deserialize<'de> for DiagnosticStableCell
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
impl Eq for DiagnosticStableCell
Source§impl PartialEq for DiagnosticStableCell
impl PartialEq for DiagnosticStableCell
Source§fn eq(&self, other: &DiagnosticStableCell) -> bool
fn eq(&self, other: &DiagnosticStableCell) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiagnosticStableCell
impl Serialize for DiagnosticStableCell
impl StructuralPartialEq for DiagnosticStableCell
Auto Trait Implementations§
impl Freeze for DiagnosticStableCell
impl RefUnwindSafe for DiagnosticStableCell
impl Send for DiagnosticStableCell
impl Sync for DiagnosticStableCell
impl Unpin for DiagnosticStableCell
impl UnsafeUnpin for DiagnosticStableCell
impl UnwindSafe for DiagnosticStableCell
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