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§impl PartialOrd for StaleNodeIndex
impl PartialOrd for StaleNodeIndex
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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