pub enum ServiceManagerKind {
Launchd,
OpenRc,
Rcd,
Sc,
Systemd,
WinSw,
}
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
WinSw
Use WinSW 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 duplicate 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 for ServiceManagerKind
impl PartialEq for ServiceManagerKind
impl Copy for ServiceManagerKind
impl Eq for ServiceManagerKind
impl StructuralPartialEq for ServiceManagerKind
Auto Trait Implementations§
impl Freeze for ServiceManagerKind
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
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.