pub struct ScoutReport {
pub asked: Vec<String>,
pub timeout_s: f64,
pub heard: Vec<HelloView>,
}Expand description
What a scouting round heard, and what it could have heard (#236).
A wrapper rather than a bare Vec<HelloView> for one reason, and it is
RFC 09 §5.1 O5: scouting reaches the local multicast domain and the
configured gossip, and nothing else. An empty list is a boundary, not a
claim that nothing is running — and a bare array cannot say so, which is
why zenctl scout --format json used to print that sentence as prose on
stdout where a document was promised.
Fields§
§asked: Vec<String>The node kinds asked for; empty means all three.
timeout_s: f64How long the round listened.
heard: Vec<HelloView>Distinct nodes heard, first sighting winning — a census, not an arrival log.
Trait Implementations§
Source§impl Clone for ScoutReport
impl Clone for ScoutReport
Source§fn clone(&self) -> ScoutReport
fn clone(&self) -> ScoutReport
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 ScoutReport
impl Debug for ScoutReport
Auto Trait Implementations§
impl Freeze for ScoutReport
impl RefUnwindSafe for ScoutReport
impl Send for ScoutReport
impl Sync for ScoutReport
impl Unpin for ScoutReport
impl UnsafeUnpin for ScoutReport
impl UnwindSafe for ScoutReport
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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<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<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