pub struct SeedConnectOutcome {
pub attempted: usize,
pub connected: usize,
}Expand description
Outcome of attempting to connect to the configured seeds (R1).
Fields§
§attempted: usizeNumber of seeds dialed.
connected: usizeNumber of seeds that completed the distribution handshake.
Implementations§
Source§impl SeedConnectOutcome
impl SeedConnectOutcome
Sourcepub const fn is_satisfied(&self) -> bool
pub const fn is_satisfied(&self) -> bool
True when at least one seed was reachable, or there were no seeds to dial (a lone bootstrap node forms a cluster of one and is not a join failure).
Trait Implementations§
Source§impl Clone for SeedConnectOutcome
impl Clone for SeedConnectOutcome
Source§fn clone(&self) -> SeedConnectOutcome
fn clone(&self) -> SeedConnectOutcome
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 SeedConnectOutcome
impl Debug for SeedConnectOutcome
Source§impl Default for SeedConnectOutcome
impl Default for SeedConnectOutcome
Source§fn default() -> SeedConnectOutcome
fn default() -> SeedConnectOutcome
Returns the “default value” for a type. Read more
impl Eq for SeedConnectOutcome
Source§impl PartialEq for SeedConnectOutcome
impl PartialEq for SeedConnectOutcome
Source§fn eq(&self, other: &SeedConnectOutcome) -> bool
fn eq(&self, other: &SeedConnectOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SeedConnectOutcome
Auto Trait Implementations§
impl Freeze for SeedConnectOutcome
impl RefUnwindSafe for SeedConnectOutcome
impl Send for SeedConnectOutcome
impl Sync for SeedConnectOutcome
impl Unpin for SeedConnectOutcome
impl UnsafeUnpin for SeedConnectOutcome
impl UnwindSafe for SeedConnectOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.