pub struct PeerCandidate {
pub peer_id: String,
pub lan_id: Option<String>,
pub tier: TrustTier,
}Expand description
A peer that may hold an artifact.
Fields§
§peer_id: StringPeer node id.
lan_id: Option<String>LAN the peer advertises (net.lan fact), for locality. Self-asserted,
so it only orders peers of the same tier.
tier: TrustTierTrust tier this node assigned the peer (Discovered when unknown).
Implementations§
Trait Implementations§
Source§impl Clone for PeerCandidate
impl Clone for PeerCandidate
Source§impl Debug for PeerCandidate
impl Debug for PeerCandidate
Source§impl PartialEq for PeerCandidate
impl PartialEq for PeerCandidate
impl StructuralPartialEq for PeerCandidate
Auto Trait Implementations§
impl Freeze for PeerCandidate
impl RefUnwindSafe for PeerCandidate
impl Send for PeerCandidate
impl Sync for PeerCandidate
impl Unpin for PeerCandidate
impl UnsafeUnpin for PeerCandidate
impl UnwindSafe for PeerCandidate
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