pub struct DaemonManager { /* private fields */ }Expand description
Manages the oxios background daemon.
Implementations§
Source§impl DaemonManager
impl DaemonManager
Sourcepub fn status(&self) -> DaemonStatus
pub fn status(&self) -> DaemonStatus
Check daemon status by reading the PID file.
Sourcepub fn install_service(&self) -> Result<()>
pub fn install_service(&self) -> Result<()>
Install as a system service (launchd on macOS, systemd on Linux).
Sourcepub fn uninstall_service(&self) -> Result<()>
pub fn uninstall_service(&self) -> Result<()>
Uninstall the system service.
Auto Trait Implementations§
impl Freeze for DaemonManager
impl RefUnwindSafe for DaemonManager
impl Send for DaemonManager
impl Sync for DaemonManager
impl Unpin for DaemonManager
impl UnsafeUnpin for DaemonManager
impl UnwindSafe for DaemonManager
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