pub struct FipsEndpointPeer {Show 25 fields
pub npub: String,
pub node_addr: NodeAddr,
pub connected: bool,
pub transport_addr: Option<String>,
pub transport_type: Option<String>,
pub link_id: u64,
pub srtt_ms: Option<u64>,
pub srtt_age_ms: Option<u64>,
pub packets_sent: u64,
pub packets_recv: u64,
pub bytes_sent: u64,
pub bytes_recv: u64,
pub rekey_in_progress: bool,
pub rekey_draining: bool,
pub current_k_bit: Option<bool>,
pub last_outbound_route: Option<String>,
pub direct_probe_pending: bool,
pub direct_probe_after_ms: Option<u64>,
pub direct_probe_retry_count: u32,
pub direct_probe_auto_reconnect: bool,
pub direct_probe_expires_at_ms: Option<u64>,
pub nostr_traversal_consecutive_failures: u32,
pub nostr_traversal_in_cooldown: bool,
pub nostr_traversal_cooldown_until_ms: Option<u64>,
pub nostr_traversal_last_observed_skew_ms: Option<i64>,
}Expand description
Authenticated FIPS peer state visible to an embedded application.
Fields§
§npub: StringPeer Nostr public key.
node_addr: NodeAddrPeer FIPS node address, derived from the public key and stable across npub encodings.
connected: boolWhether an authenticated link-layer peer is currently active.
transport_addr: Option<String>Current underlay transport address, when a link has authenticated.
transport_type: Option<String>Current underlay transport kind, when known.
link_id: u64Authenticated link id.
srtt_ms: Option<u64>Smoothed RTT in milliseconds, once measured by FIPS MMP.
srtt_age_ms: Option<u64>Age of the current SRTT sample in milliseconds.
packets_sent: u64Link packets sent.
packets_recv: u64Link packets received.
bytes_sent: u64Link bytes sent.
bytes_recv: u64Link bytes received.
rekey_in_progress: boolWhether a link-layer rekey is currently in progress.
rekey_draining: boolWhether this peer is draining an old key during rekey.
current_k_bit: Option<bool>Current link-layer key bit for active peers.
last_outbound_route: Option<String>Last outbound end-to-end session route: direct when the first hop was
the destination peer, fallback when traffic went through another peer.
direct_probe_pending: boolWhether direct UDP probing is queued while this peer may still be reachable through a fallback transport.
direct_probe_after_ms: Option<u64>Millisecond timestamp when the queued direct probe becomes eligible.
direct_probe_retry_count: u32Number of direct probe/retry attempts accumulated for this peer.
direct_probe_auto_reconnect: boolWhether the queued direct probe is an unlimited auto-reconnect.
direct_probe_expires_at_ms: Option<u64>Millisecond timestamp when a bounded direct probe/retry entry expires.
nostr_traversal_consecutive_failures: u32Consecutive Nostr traversal failures recorded for this peer.
nostr_traversal_in_cooldown: boolWhether Nostr traversal is currently cooling down for this peer.
nostr_traversal_cooldown_until_ms: Option<u64>Millisecond timestamp when Nostr traversal cooldown ends.
nostr_traversal_last_observed_skew_ms: Option<i64>Last observed Nostr timestamp skew in milliseconds for this peer.
Trait Implementations§
Source§impl Clone for FipsEndpointPeer
impl Clone for FipsEndpointPeer
Source§fn clone(&self) -> FipsEndpointPeer
fn clone(&self) -> FipsEndpointPeer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FipsEndpointPeer
impl Debug for FipsEndpointPeer
impl Eq for FipsEndpointPeer
Source§impl From<NodeEndpointPeer> for FipsEndpointPeer
impl From<NodeEndpointPeer> for FipsEndpointPeer
Source§fn from(peer: NodeEndpointPeer) -> FipsEndpointPeer
fn from(peer: NodeEndpointPeer) -> FipsEndpointPeer
Source§impl PartialEq for FipsEndpointPeer
impl PartialEq for FipsEndpointPeer
Source§fn eq(&self, other: &FipsEndpointPeer) -> bool
fn eq(&self, other: &FipsEndpointPeer) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FipsEndpointPeer
Auto Trait Implementations§
impl Freeze for FipsEndpointPeer
impl RefUnwindSafe for FipsEndpointPeer
impl Send for FipsEndpointPeer
impl Sync for FipsEndpointPeer
impl Unpin for FipsEndpointPeer
impl UnsafeUnpin for FipsEndpointPeer
impl UnwindSafe for FipsEndpointPeer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.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>
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>
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