#[non_exhaustive]pub enum ServiceStatus {
On,
Off {
reason: String,
},
}Expand description
Whether one service can be used, and why not.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
On
The service validated and its tools may run.
Off
The service is off. reason is safe to show to the model.
Trait Implementations§
Source§impl Clone for ServiceStatus
impl Clone for ServiceStatus
Source§impl Debug for ServiceStatus
impl Debug for ServiceStatus
impl Eq for ServiceStatus
Source§impl PartialEq for ServiceStatus
impl PartialEq for ServiceStatus
impl StructuralPartialEq for ServiceStatus
Auto Trait Implementations§
impl Forget for ServiceStatus
impl Freeze for ServiceStatus
impl Move for ServiceStatus
impl RefUnwindSafe for ServiceStatus
impl Send for ServiceStatus
impl Sync for ServiceStatus
impl Unpin for ServiceStatus
impl UnsafeUnpin for ServiceStatus
impl UnwindSafe for ServiceStatus
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
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.