pub enum AssetWatchStatus {
Missing,
Active,
Retired,
OutForService,
}Expand description
Latest known lifecycle state of the asset at this location, as
observed by AssetWatch::pump. Mirrors the on-disk AssetStatus
enum plus a Missing variant for “no asset registered here at
all.” Control programs gate auto on is_active() (which is
state == Active), or pattern-match on active_status() for
finer-grained policy.
Variants§
Missing
No asset is registered at the location (or the only one was deleted / had its location moved elsewhere).
Active
Active asset present at the location.
Retired
Asset present but marked Retired — control programs should refuse to run tests against it.
OutForService
Asset present but marked OutForService — same posture as Retired, separate label so the operator’s UI can distinguish.
Trait Implementations§
Source§impl Clone for AssetWatchStatus
impl Clone for AssetWatchStatus
Source§fn clone(&self) -> AssetWatchStatus
fn clone(&self) -> AssetWatchStatus
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 moreimpl Copy for AssetWatchStatus
Source§impl Debug for AssetWatchStatus
impl Debug for AssetWatchStatus
impl Eq for AssetWatchStatus
Source§impl PartialEq for AssetWatchStatus
impl PartialEq for AssetWatchStatus
impl StructuralPartialEq for AssetWatchStatus
Auto Trait Implementations§
impl Freeze for AssetWatchStatus
impl RefUnwindSafe for AssetWatchStatus
impl Send for AssetWatchStatus
impl Sync for AssetWatchStatus
impl Unpin for AssetWatchStatus
impl UnsafeUnpin for AssetWatchStatus
impl UnwindSafe for AssetWatchStatus
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.