pub struct CachedNodeFacts {
pub facts: NodeFacts,
pub signed: SignedNodeFacts,
pub trust_tier: TrustTier,
pub tier_source: TierSource,
pub origin: u64,
pub received_at: u64,
pub delta_seq: u64,
pub public_key: [u8; 32],
}Expand description
One cached, verified facts block plus what the receiver knows about it.
Fields§
§facts: NodeFactsCurrent facts (base plus applied deltas).
signed: SignedNodeFactsThe signed base as received (re-shareable, re-verifiable).
trust_tier: TrustTierTrust tier assigned by this node.
tier_source: TierSourceWhere the tier came from.
origin: u64Connection that supplied the facts (0 = none), for per-connection quotas.
received_at: u64When this node accepted the base, unix seconds.
delta_seq: u64Last applied delta seq (0 = none).
public_key: [u8; 32]Signing key of the node.
Implementations§
Source§impl CachedNodeFacts
impl CachedNodeFacts
Sourcepub fn capabilities(&self) -> &[Capability]
pub fn capabilities(&self) -> &[Capability]
Advertised capabilities.
Sourcepub fn trust_tier(&self) -> TrustTier
pub fn trust_tier(&self) -> TrustTier
Receiver-assigned trust tier.
Trait Implementations§
Source§impl Clone for CachedNodeFacts
impl Clone for CachedNodeFacts
Source§impl Debug for CachedNodeFacts
impl Debug for CachedNodeFacts
Source§impl PartialEq for CachedNodeFacts
impl PartialEq for CachedNodeFacts
impl StructuralPartialEq for CachedNodeFacts
Auto Trait Implementations§
impl Freeze for CachedNodeFacts
impl RefUnwindSafe for CachedNodeFacts
impl Send for CachedNodeFacts
impl Sync for CachedNodeFacts
impl Unpin for CachedNodeFacts
impl UnsafeUnpin for CachedNodeFacts
impl UnwindSafe for CachedNodeFacts
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,
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