pub enum ServiceManagerKind {
Launchd,
OpenRc,
Rcd,
Sc,
Systemd,
}
Expand description
Represents the kind of service manager
Variants§
Launchd
Use launchd to manage the service
OpenRc
Use OpenRC to manage the service
Rcd
Use rc.d to manage the service
Sc
Use Windows service controller to manage the service
Systemd
Use systemd to manage the service
Implementations§
source§impl ServiceManagerKind
impl ServiceManagerKind
sourcepub fn native() -> Result<ServiceManagerKind>
pub fn native() -> Result<ServiceManagerKind>
Looks up the kind of service management platform native to the operating system
Trait Implementations§
source§impl Clone for ServiceManagerKind
impl Clone for ServiceManagerKind
source§fn clone(&self) -> ServiceManagerKind
fn clone(&self) -> ServiceManagerKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServiceManagerKind
impl Debug for ServiceManagerKind
source§impl Hash for ServiceManagerKind
impl Hash for ServiceManagerKind
source§impl PartialEq<ServiceManagerKind> for ServiceManagerKind
impl PartialEq<ServiceManagerKind> for ServiceManagerKind
source§fn eq(&self, other: &ServiceManagerKind) -> bool
fn eq(&self, other: &ServiceManagerKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ServiceManagerKind
impl Eq for ServiceManagerKind
impl StructuralEq for ServiceManagerKind
impl StructuralPartialEq for ServiceManagerKind
Auto Trait Implementations§
impl RefUnwindSafe for ServiceManagerKind
impl Send for ServiceManagerKind
impl Sync for ServiceManagerKind
impl Unpin for ServiceManagerKind
impl UnwindSafe for ServiceManagerKind
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