pub struct PersistedPeerMetadata {Show 14 fields
pub principal: String,
pub requests_sent: u64,
pub successes: u64,
pub timeouts: u64,
pub failures: u64,
pub srtt_ms: f64,
pub rttvar_ms: f64,
pub rto_ms: u64,
pub bytes_received: u64,
pub bytes_sent: u64,
pub cashu_paid_sat: u64,
pub cashu_received_sat: u64,
pub cashu_payment_receipts: u64,
pub cashu_payment_defaults: u64,
}Expand description
Persisted metadata for a logical peer principal (pubkey/npub identity).
This omits process-local runtime fields (Instant, active backoff timers) so
metadata can survive restarts and session UUID churn.
Fields§
§principal: StringStable principal identity (usually pubkey/npub).
requests_sent: u64§successes: u64§timeouts: u64§failures: u64§srtt_ms: f64§rttvar_ms: f64§rto_ms: u64§bytes_received: u64§bytes_sent: u64§cashu_paid_sat: u64§cashu_received_sat: u64§cashu_payment_receipts: u64§cashu_payment_defaults: u64Trait Implementations§
Source§impl Clone for PersistedPeerMetadata
impl Clone for PersistedPeerMetadata
Source§fn clone(&self) -> PersistedPeerMetadata
fn clone(&self) -> PersistedPeerMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 PersistedPeerMetadata
impl Debug for PersistedPeerMetadata
Source§impl Default for PersistedPeerMetadata
impl Default for PersistedPeerMetadata
Source§fn default() -> PersistedPeerMetadata
fn default() -> PersistedPeerMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersistedPeerMetadata
impl<'de> Deserialize<'de> for PersistedPeerMetadata
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
Source§impl PartialEq for PersistedPeerMetadata
impl PartialEq for PersistedPeerMetadata
Source§impl Serialize for PersistedPeerMetadata
impl Serialize for PersistedPeerMetadata
impl StructuralPartialEq for PersistedPeerMetadata
Auto Trait Implementations§
impl Freeze for PersistedPeerMetadata
impl RefUnwindSafe for PersistedPeerMetadata
impl Send for PersistedPeerMetadata
impl Sync for PersistedPeerMetadata
impl Unpin for PersistedPeerMetadata
impl UnsafeUnpin for PersistedPeerMetadata
impl UnwindSafe for PersistedPeerMetadata
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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