pub struct PointerStateSummary {
pub address: XorName,
pub state_id: XorName,
pub counter: u64,
pub target_tag: u8,
pub target_address: XorName,
}Expand description
A pointer state, as a hint or as an answer about what a node holds.
The fields the merge rule orders by, and the state they identify, so a receiver can tell whether a hinted state would replace what it holds without fetching it. Unauthenticated on its own: nothing is stored on the strength of a summary. A receiver acts on one only through quorum verification and a fetched record whose signature it checks itself.
Fields§
§address: XorNameThe pointer’s address.
state_id: XorNameThe state’s identifier.
counter: u64The update counter, the merge rule’s first key.
target_tag: u8The target’s kind tag.
target_address: XorNameThe target’s address. With the tag, the merge rule’s second key.
Trait Implementations§
Source§impl Clone for PointerStateSummary
impl Clone for PointerStateSummary
impl Copy for PointerStateSummary
Source§impl Debug for PointerStateSummary
impl Debug for PointerStateSummary
Source§impl<'de> Deserialize<'de> for PointerStateSummary
impl<'de> Deserialize<'de> for PointerStateSummary
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 PointerStateSummary
Source§impl From<PointerState> for PointerStateSummary
impl From<PointerState> for PointerStateSummary
Source§fn from(state: PointerState) -> Self
fn from(state: PointerState) -> Self
Converts to this type from the input type.
Source§impl From<PointerStateSummary> for PointerState
impl From<PointerStateSummary> for PointerState
Source§fn from(summary: PointerStateSummary) -> Self
fn from(summary: PointerStateSummary) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PointerStateSummary
impl PartialEq for PointerStateSummary
Source§impl Serialize for PointerStateSummary
impl Serialize for PointerStateSummary
impl StructuralPartialEq for PointerStateSummary
Auto Trait Implementations§
impl Freeze for PointerStateSummary
impl RefUnwindSafe for PointerStateSummary
impl Send for PointerStateSummary
impl Sync for PointerStateSummary
impl Unpin for PointerStateSummary
impl UnsafeUnpin for PointerStateSummary
impl UnwindSafe for PointerStateSummary
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<'de, T> BorrowedRpcObject<'de> for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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