pub enum AssetWatchTrigger {
InitialSync,
InitialSyncEmpty,
Created,
CalibrationAdded,
NameplateUpdated,
StatusChanged,
LocationChanged,
Other(&'static str),
}Expand description
What caused this update to be published.
Variants§
InitialSync
First payload after AssetWatch::new, derived from a one-shot
ams.list_assets query. Tells the control program “this is
the current state of the role; act as if you’d just received
every broadcast since the asset was registered.”
InitialSyncEmpty
First payload after AssetWatch::new and the location has no
active asset registered. Control programs should react by
disabling the hardware feature this asset feeds (e.g., refuse
to enter a test that depends on the role).
Created
ams.create_asset registered a new asset at this location.
CalibrationAdded
ams.add_calibration recorded a new calibration on the asset.
This is the most common operational trigger — recal events
during a service window.
NameplateUpdated
ams.update_asset changed nameplate fields (capacity,
compression_sensitivity_mv_v, bridge_resistance_ohm, etc.) or the
asset’s sub_locations.
StatusChanged
ams.update_asset changed the asset’s lifecycle status
(active ↔ retired / out_for_service). On a retirement the
payload’s asset.status reflects the new state — control
programs typically refuse to run tests against a retired role.
LocationChanged
ams.update_asset moved the asset out of this role. The
payload’s asset.status shows retired from this location’s
POV — the asset itself is fine, just elsewhere now. Same
reaction as StatusChanged in most cases.
Other(&'static str)
A trigger label the server published that this client doesn’t know about. Carried as a string so future server versions can add triggers without forcing a control-program rebuild.
Trait Implementations§
Source§impl Clone for AssetWatchTrigger
impl Clone for AssetWatchTrigger
Source§fn clone(&self) -> AssetWatchTrigger
fn clone(&self) -> AssetWatchTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AssetWatchTrigger
Source§impl Debug for AssetWatchTrigger
impl Debug for AssetWatchTrigger
impl Eq for AssetWatchTrigger
Source§impl PartialEq for AssetWatchTrigger
impl PartialEq for AssetWatchTrigger
impl StructuralPartialEq for AssetWatchTrigger
Auto Trait Implementations§
impl Freeze for AssetWatchTrigger
impl RefUnwindSafe for AssetWatchTrigger
impl Send for AssetWatchTrigger
impl Sync for AssetWatchTrigger
impl Unpin for AssetWatchTrigger
impl UnsafeUnpin for AssetWatchTrigger
impl UnwindSafe for AssetWatchTrigger
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
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
key and return true if they are equal.