#[non_exhaustive]pub enum ServiceOperation {
Inspect,
Install,
Start,
Stop,
Restart,
Uninstall,
}Expand description
Manager operations. Destructive variants require Owned.
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.
Inspect
Inspect registration and state (always allowed).
Install
Install/register (allowed for Absent with caller authorization, or Owned refresh).
Start
Start an Owned stopped service.
Stop
Stop an Owned running service.
Restart
Restart an Owned service.
Uninstall
Remove an Owned registration.
Trait Implementations§
Source§impl Clone for ServiceOperation
impl Clone for ServiceOperation
impl Copy for ServiceOperation
Source§impl Debug for ServiceOperation
impl Debug for ServiceOperation
impl Eq for ServiceOperation
Source§impl PartialEq for ServiceOperation
impl PartialEq for ServiceOperation
impl StructuralPartialEq for ServiceOperation
Auto Trait Implementations§
impl Freeze for ServiceOperation
impl RefUnwindSafe for ServiceOperation
impl Send for ServiceOperation
impl Sync for ServiceOperation
impl Unpin for ServiceOperation
impl UnsafeUnpin for ServiceOperation
impl UnwindSafe for ServiceOperation
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