#[non_exhaustive]pub enum ServiceState {
NotInstalled,
Stopped,
Running {
pid: Option<u32>,
},
}Expand description
What a manager says about a service.
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.
NotInstalled
Stopped
Installed and not running.
Running
Running; the process id when the manager reports one.
Trait Implementations§
Source§impl Clone for ServiceState
impl Clone for ServiceState
impl Copy for ServiceState
Source§impl Debug for ServiceState
impl Debug for ServiceState
impl Eq for ServiceState
Source§impl PartialEq for ServiceState
impl PartialEq for ServiceState
impl StructuralPartialEq for ServiceState
Auto Trait Implementations§
impl Freeze for ServiceState
impl RefUnwindSafe for ServiceState
impl Send for ServiceState
impl Sync for ServiceState
impl Unpin for ServiceState
impl UnsafeUnpin for ServiceState
impl UnwindSafe for ServiceState
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