Struct jmt::storage::StaleNodeIndex
source · pub struct StaleNodeIndex {
pub stale_since_version: Version,
pub node_key: NodeKey,
}
Expand description
Indicates a node becomes stale since stale_since_version
.
Fields§
§stale_since_version: Version
The version since when the node is overwritten and becomes stale.
node_key: NodeKey
The NodeKey
identifying the node associated with this
record.
Trait Implementations§
source§impl BorshDeserialize for StaleNodeIndex
impl BorshDeserialize for StaleNodeIndex
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 BorshSerialize for StaleNodeIndex
impl BorshSerialize for StaleNodeIndex
source§impl Clone for StaleNodeIndex
impl Clone for StaleNodeIndex
source§fn clone(&self) -> StaleNodeIndex
fn clone(&self) -> StaleNodeIndex
Returns a copy 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 StaleNodeIndex
impl Debug for StaleNodeIndex
source§impl Hash for StaleNodeIndex
impl Hash for StaleNodeIndex
source§impl Ord for StaleNodeIndex
impl Ord for StaleNodeIndex
source§fn cmp(&self, other: &StaleNodeIndex) -> Ordering
fn cmp(&self, other: &StaleNodeIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StaleNodeIndex
impl PartialEq for StaleNodeIndex
source§fn eq(&self, other: &StaleNodeIndex) -> bool
fn eq(&self, other: &StaleNodeIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StaleNodeIndex
impl PartialOrd for StaleNodeIndex
source§fn partial_cmp(&self, other: &StaleNodeIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &StaleNodeIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for StaleNodeIndex
impl StructuralPartialEq for StaleNodeIndex
Auto Trait Implementations§
impl Freeze for StaleNodeIndex
impl RefUnwindSafe for StaleNodeIndex
impl Send for StaleNodeIndex
impl Sync for StaleNodeIndex
impl Unpin for StaleNodeIndex
impl UnwindSafe for StaleNodeIndex
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