pub enum TopologyChange {
Service {
subject: String,
present: bool,
},
Channel {
name: String,
life: LineLife,
state: LineState,
},
ConnectionOpened {
id: u64,
mount: Mount,
participant: Option<String>,
},
ConnectionClosed {
id: u64,
},
Worker {
connection: u64,
identity: String,
subjects: Vec<String>,
activities: Vec<StationActivity>,
},
Flow {
connection: u64,
line: String,
role: FlowRole,
present: bool,
},
Link {
link_id: String,
peer: String,
carrier: Option<Carrier>,
state: LinkState,
reason: Option<String>,
counters: LinkCounters,
},
Peer {
name: String,
present: bool,
},
}Expand description
One change to the topology, emitted where it happens.
Variants§
Service
A responder (a service) was registered or removed.
Channel
A channel joined the roster or changed state.
Fields
ConnectionOpened
A connection opened.
Fields
ConnectionClosed
A connection closed.
Worker
A connection registered as a worker: its identity is a station while the connection is open, carrying what it serves (SRV-027 R3).
Fields
§
activities: Vec<StationActivity>Its activities with their schema strings, as registered.
Flow
A connection began (present) or stopped using a line one way.
Fields
Link
A federated link opened, ended, or changed its observations.
Fields
§
counters: LinkCountersCounts supplied by their source.
Peer
A cluster peer joined or left.
Trait Implementations§
Source§impl Clone for TopologyChange
impl Clone for TopologyChange
Source§impl Debug for TopologyChange
impl Debug for TopologyChange
impl Eq for TopologyChange
Source§impl PartialEq for TopologyChange
impl PartialEq for TopologyChange
impl StructuralPartialEq for TopologyChange
Auto Trait Implementations§
impl Freeze for TopologyChange
impl RefUnwindSafe for TopologyChange
impl Send for TopologyChange
impl Sync for TopologyChange
impl Unpin for TopologyChange
impl UnsafeUnpin for TopologyChange
impl UnwindSafe for TopologyChange
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> 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<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.