pub struct PeerRepeaterRecord {
pub hint: NodeHint,
pub name: Option<String>,
pub location: Option<NodeLocation>,
pub regions: Vec<[u8; 2]>,
pub last_identity_ms: u64,
}Expand description
What one repeater’s identity told this node about it.
Fields§
§hint: NodeHintThe whole node hint, since an identity carries the whole key.
name: Option<String>§location: Option<NodeLocation>§regions: Vec<[u8; 2]>The codes the peer flood-forwards for, derived from the region strings its identity carried.
last_identity_ms: u64When the identity arrived, on the monotonic clock.
Implementations§
Source§impl PeerRepeaterRecord
impl PeerRepeaterRecord
Sourcepub fn router_hint(&self) -> RouterHint
pub fn router_hint(&self) -> RouterHint
The router hint an observation would be keyed by — the first two bytes of the same public key.
Trait Implementations§
Source§impl Clone for PeerRepeaterRecord
impl Clone for PeerRepeaterRecord
Source§fn clone(&self) -> PeerRepeaterRecord
fn clone(&self) -> PeerRepeaterRecord
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerRepeaterRecord
impl Debug for PeerRepeaterRecord
Source§impl PartialEq for PeerRepeaterRecord
impl PartialEq for PeerRepeaterRecord
impl Eq for PeerRepeaterRecord
impl StructuralPartialEq for PeerRepeaterRecord
Auto Trait Implementations§
impl Freeze for PeerRepeaterRecord
impl RefUnwindSafe for PeerRepeaterRecord
impl Send for PeerRepeaterRecord
impl Sync for PeerRepeaterRecord
impl Unpin for PeerRepeaterRecord
impl UnwindSafe for PeerRepeaterRecord
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)