pub struct PeerRecord {
pub identity: CoreIdentity,
pub endpoints: Vec<PeerEndpoint>,
pub capabilities: Vec<CapabilityDescriptor>,
pub healthy: bool,
pub last_seen_ms: u64,
pub metadata: BTreeMap<String, String>,
}Expand description
Generic routing record for one distributed core.
Fields§
§identity: CoreIdentityDistributed peer identity.
endpoints: Vec<PeerEndpoint>Public endpoints advertised by the peer.
capabilities: Vec<CapabilityDescriptor>Generic capabilities advertised by the peer.
healthy: boolWhether the peer is eligible for routing.
last_seen_ms: u64Last accepted presence timestamp.
metadata: BTreeMap<String, String>Non-sensitive routing metadata.
Trait Implementations§
Source§impl Clone for PeerRecord
impl Clone for PeerRecord
Source§fn clone(&self) -> PeerRecord
fn clone(&self) -> PeerRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PeerRecord
impl Debug for PeerRecord
Source§impl<'de> Deserialize<'de> for PeerRecord
impl<'de> Deserialize<'de> for PeerRecord
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 PeerRecord
Source§impl PartialEq for PeerRecord
impl PartialEq for PeerRecord
Source§impl Serialize for PeerRecord
impl Serialize for PeerRecord
impl StructuralPartialEq for PeerRecord
Auto Trait Implementations§
impl Freeze for PeerRecord
impl RefUnwindSafe for PeerRecord
impl Send for PeerRecord
impl Sync for PeerRecord
impl Unpin for PeerRecord
impl UnsafeUnpin for PeerRecord
impl UnwindSafe for PeerRecord
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