pub struct RealOps;Expand description
Real, system-touching implementation used by the CLI.
Trait Implementations§
Source§impl ServiceOps for RealOps
impl ServiceOps for RealOps
fn unit_dir(&self) -> Result<PathBuf>
fn binary_path(&self) -> Result<PathBuf>
Source§fn activate(&self, unit_path: &Path) -> bool
fn activate(&self, unit_path: &Path) -> bool
Activate the unit (systemctl –user enable / launchctl load /
schtasks /Create). Implementations return false if the platform
tool isn’t available so install() can still succeed (file
written, manual activation instructions printed).
fn deactivate(&self, unit_path: &Path)
Auto Trait Implementations§
impl Freeze for RealOps
impl RefUnwindSafe for RealOps
impl Send for RealOps
impl Sync for RealOps
impl Unpin for RealOps
impl UnsafeUnpin for RealOps
impl UnwindSafe for RealOps
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