Struct service_manager::RcdServiceManager
source · pub struct RcdServiceManager {
pub config: RcdConfig,
}
Expand description
Implementation of ServiceManager
for FreeBSD’s rc.d
Fields§
§config: RcdConfig
Configuration settings tied to rc.d services
Implementations§
source§impl RcdServiceManager
impl RcdServiceManager
sourcepub fn with_config(self, config: RcdConfig) -> Self
pub fn with_config(self, config: RcdConfig) -> Self
Update manager to use the specified config
Trait Implementations§
source§impl Clone for RcdServiceManager
impl Clone for RcdServiceManager
source§fn clone(&self) -> RcdServiceManager
fn clone(&self) -> RcdServiceManager
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 RcdServiceManager
impl Debug for RcdServiceManager
source§impl Default for RcdServiceManager
impl Default for RcdServiceManager
source§fn default() -> RcdServiceManager
fn default() -> RcdServiceManager
Returns the “default value” for a type. Read more
source§impl From<RcdServiceManager> for TypedServiceManager
impl From<RcdServiceManager> for TypedServiceManager
source§fn from(manager: RcdServiceManager) -> Self
fn from(manager: RcdServiceManager) -> Self
Converts to this type from the input type.
source§impl PartialEq<RcdServiceManager> for RcdServiceManager
impl PartialEq<RcdServiceManager> for RcdServiceManager
source§fn eq(&self, other: &RcdServiceManager) -> bool
fn eq(&self, other: &RcdServiceManager) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ServiceManager for RcdServiceManager
impl ServiceManager for RcdServiceManager
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 RcdServiceManager
impl StructuralEq for RcdServiceManager
impl StructuralPartialEq for RcdServiceManager
Auto Trait Implementations§
impl RefUnwindSafe for RcdServiceManager
impl Send for RcdServiceManager
impl Sync for RcdServiceManager
impl Unpin for RcdServiceManager
impl UnwindSafe for RcdServiceManager
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