pub struct LaunchdManager<E: CommandExecutor = SystemExecutor> { /* private fields */ }Expand description
launchd manager implementing the neutral contract.
Implementations§
Source§impl<E: CommandExecutor> LaunchdManager<E>
impl<E: CommandExecutor> LaunchdManager<E>
Sourcepub fn new(executor: E, install: LaunchdInstall) -> Self
pub fn new(executor: E, install: LaunchdInstall) -> Self
Creates a launchd adapter. No manager calls are made here.
Sourcepub fn install_config(&self) -> &LaunchdInstall
pub fn install_config(&self) -> &LaunchdInstall
Returns the install descriptor.
Trait Implementations§
Source§impl<E: Debug + CommandExecutor> Debug for LaunchdManager<E>
impl<E: Debug + CommandExecutor> Debug for LaunchdManager<E>
Source§impl<E: CommandExecutor> ServiceManager for LaunchdManager<E>
impl<E: CommandExecutor> ServiceManager for LaunchdManager<E>
Source§fn inspect(&self, spec: &ServiceSpec) -> Result<LifecycleSnapshot, ServiceError>
fn inspect(&self, spec: &ServiceSpec) -> Result<LifecycleSnapshot, ServiceError>
Inspects registration and lifecycle state without mutating anything. Read more
Source§fn install(
&mut self,
spec: &ServiceSpec,
) -> Result<TransitionResult, ServiceError>
fn install( &mut self, spec: &ServiceSpec, ) -> Result<TransitionResult, ServiceError>
Source§fn start(
&mut self,
spec: &ServiceSpec,
timeout: Duration,
) -> Result<TransitionResult, ServiceError>
fn start( &mut self, spec: &ServiceSpec, timeout: Duration, ) -> Result<TransitionResult, ServiceError>
Source§fn stop(
&mut self,
spec: &ServiceSpec,
timeout: Duration,
) -> Result<TransitionResult, ServiceError>
fn stop( &mut self, spec: &ServiceSpec, timeout: Duration, ) -> Result<TransitionResult, ServiceError>
Source§fn restart(
&mut self,
spec: &ServiceSpec,
timeout: Duration,
) -> Result<TransitionResult, ServiceError>
fn restart( &mut self, spec: &ServiceSpec, timeout: Duration, ) -> Result<TransitionResult, ServiceError>
Source§fn uninstall(
&mut self,
spec: &ServiceSpec,
) -> Result<TransitionResult, ServiceError>
fn uninstall( &mut self, spec: &ServiceSpec, ) -> Result<TransitionResult, ServiceError>
Removes an
Owned registration. Read moreAuto Trait Implementations§
impl<E> Freeze for LaunchdManager<E>where
E: Freeze,
impl<E> RefUnwindSafe for LaunchdManager<E>where
E: RefUnwindSafe,
impl<E> Send for LaunchdManager<E>where
E: Send,
impl<E> Sync for LaunchdManager<E>where
E: Sync,
impl<E> Unpin for LaunchdManager<E>where
E: Unpin,
impl<E> UnsafeUnpin for LaunchdManager<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for LaunchdManager<E>where
E: UnwindSafe,
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