Struct service_manager::OpenRcServiceManager
source · pub struct OpenRcServiceManager {
pub config: OpenRcConfig,
}
Expand description
Implementation of ServiceManager
for Linux’s OpenRC
Fields§
§config: OpenRcConfig
Configuration settings tied to OpenRC services
Implementations§
source§impl OpenRcServiceManager
impl OpenRcServiceManager
sourcepub fn with_config(self, config: OpenRcConfig) -> Self
pub fn with_config(self, config: OpenRcConfig) -> Self
Update manager to use the specified config
Trait Implementations§
source§impl Clone for OpenRcServiceManager
impl Clone for OpenRcServiceManager
source§fn clone(&self) -> OpenRcServiceManager
fn clone(&self) -> OpenRcServiceManager
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 OpenRcServiceManager
impl Debug for OpenRcServiceManager
source§impl Default for OpenRcServiceManager
impl Default for OpenRcServiceManager
source§fn default() -> OpenRcServiceManager
fn default() -> OpenRcServiceManager
Returns the “default value” for a type. Read more
source§impl From<OpenRcServiceManager> for TypedServiceManager
impl From<OpenRcServiceManager> for TypedServiceManager
source§fn from(manager: OpenRcServiceManager) -> Self
fn from(manager: OpenRcServiceManager) -> Self
Converts to this type from the input type.
source§impl PartialEq<OpenRcServiceManager> for OpenRcServiceManager
impl PartialEq<OpenRcServiceManager> for OpenRcServiceManager
source§fn eq(&self, other: &OpenRcServiceManager) -> bool
fn eq(&self, other: &OpenRcServiceManager) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ServiceManager for OpenRcServiceManager
impl ServiceManager for OpenRcServiceManager
source§fn available(&self) -> Result<bool>
fn available(&self) -> Result<bool>
Determines if the service manager exists (e.g. is
launchd
available on the system?) and
can be usedsource§fn install(&self, ctx: ServiceInstallCtx) -> Result<()>
fn install(&self, ctx: ServiceInstallCtx) -> Result<()>
Installs a new service using the manager
source§fn uninstall(&self, ctx: ServiceUninstallCtx) -> Result<()>
fn uninstall(&self, ctx: ServiceUninstallCtx) -> Result<()>
Uninstalls an existing service using the manager
source§fn level(&self) -> ServiceLevel
fn level(&self) -> ServiceLevel
Returns the current target level for the manager
impl Eq for OpenRcServiceManager
impl StructuralEq for OpenRcServiceManager
impl StructuralPartialEq for OpenRcServiceManager
Auto Trait Implementations§
impl RefUnwindSafe for OpenRcServiceManager
impl Send for OpenRcServiceManager
impl Sync for OpenRcServiceManager
impl Unpin for OpenRcServiceManager
impl UnwindSafe for OpenRcServiceManager
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