pub struct UpdatePeersOutcome {
pub added: usize,
pub removed: usize,
pub updated: usize,
pub unchanged: usize,
}Expand description
Reports what changed in response to FipsEndpoint::update_peers.
Fields§
§added: usizeNumber of npubs that were not previously in the runtime peer list
and got an initiate_peer_connection call.
removed: usizeNumber of npubs that were dropped from the runtime peer list. Their retry entries are gone; any active session stays up until the regular liveness timeout reaps it.
updated: usizeNumber of npubs that were already in the list but had a different
addresses, alias, connect_policy, or auto_reconnect value.
The new values are now in effect for retries and aliasing; refreshed
direct addresses may also trigger a new direct dial for auto peers.
unchanged: usizeNumber of npubs that were in the list and identical to the new entry.
Trait Implementations§
Source§impl Clone for UpdatePeersOutcome
impl Clone for UpdatePeersOutcome
Source§fn clone(&self) -> UpdatePeersOutcome
fn clone(&self) -> UpdatePeersOutcome
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 UpdatePeersOutcome
impl Debug for UpdatePeersOutcome
Source§impl Default for UpdatePeersOutcome
impl Default for UpdatePeersOutcome
Source§fn default() -> UpdatePeersOutcome
fn default() -> UpdatePeersOutcome
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdatePeersOutcome
impl PartialEq for UpdatePeersOutcome
Source§fn eq(&self, other: &UpdatePeersOutcome) -> bool
fn eq(&self, other: &UpdatePeersOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UpdatePeersOutcome
impl StructuralPartialEq for UpdatePeersOutcome
Auto Trait Implementations§
impl Freeze for UpdatePeersOutcome
impl RefUnwindSafe for UpdatePeersOutcome
impl Send for UpdatePeersOutcome
impl Sync for UpdatePeersOutcome
impl Unpin for UpdatePeersOutcome
impl UnsafeUnpin for UpdatePeersOutcome
impl UnwindSafe for UpdatePeersOutcome
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<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
Compare self to
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>
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