pub struct NodeStats {
pub new_nodes: usize,
pub new_leaves: usize,
pub stale_nodes: usize,
pub stale_leaves: usize,
}
Fields§
§new_nodes: usize
§new_leaves: usize
§stale_nodes: usize
§stale_leaves: usize
Trait Implementations§
source§impl BorshDeserialize for NodeStats
impl BorshDeserialize for NodeStats
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl PartialEq for NodeStats
impl PartialEq for NodeStats
impl Eq for NodeStats
impl StructuralPartialEq for NodeStats
Auto Trait Implementations§
impl Freeze for NodeStats
impl RefUnwindSafe for NodeStats
impl Send for NodeStats
impl Sync for NodeStats
impl Unpin for NodeStats
impl UnwindSafe for NodeStats
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