pub enum FleetEvent {
Sample(Arc<SampleView>),
NodeUp(String),
NodeDown(String),
StatsTick,
WatchChanged,
WatchSeeded {
id: WatchId,
coverage: SeedCoverage,
},
}Expand description
What the monitor emits.
Deliberately no matching variant (#38/#80 adoption note): zenoh 1.9
has matching listeners on publishers and queriers only — a subscriber
cannot ask “does anyone publish what I watch”, so the monitor’s watches
have nothing honest to report here. Matching lives on the write facade’s
crate::Publication and on crate::RepeatingQuery, the two entities
this process declares that zenoh can answer for.
Variants§
Sample(Arc<SampleView>)
NodeUp(String)
A liveliness token appeared (full wire key of the token).
NodeDown(String)
A liveliness token disappeared.
StatsTick
The tree snapshot was rebuilt — pull it via Monitor::tree.
WatchChanged
The watch set changed (Monitor::watch/Monitor::unwatch) —
coverage labels should refresh; pull the set via Monitor::watched.
WatchSeeded
A seeded watch’s seed phase resolved (issue #92): both seed paths of
Monitor::watch_seeded finished, with what each contributed.
Everything on this watch after this event is live-only — “seeding”
panes flip to “live” here, never on a guess.
Trait Implementations§
Source§impl Clone for FleetEvent
impl Clone for FleetEvent
Source§fn clone(&self) -> FleetEvent
fn clone(&self) -> FleetEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FleetEvent
impl !UnwindSafe for FleetEvent
impl Freeze for FleetEvent
impl Send for FleetEvent
impl Sync for FleetEvent
impl Unpin for FleetEvent
impl UnsafeUnpin for FleetEvent
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
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> ⓘ
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