pub struct SystemdManager { /* private fields */ }Implementations§
Source§impl SystemdManager
impl SystemdManager
pub fn new() -> Result<Self>
pub async fn generate_service_file(&self) -> Result<String>
pub async fn install(&self) -> Result<()>
pub async fn uninstall(&self) -> Result<()>
pub async fn start(&self) -> Result<()>
pub async fn stop(&self) -> Result<()>
pub async fn restart(&self) -> Result<()>
pub async fn enable(&self) -> Result<()>
pub async fn disable(&self) -> Result<()>
pub async fn is_running(&self) -> Result<bool>
pub async fn status(&self) -> Result<String>
pub async fn logs(&self, lines: usize) -> Result<String>
Auto Trait Implementations§
impl Freeze for SystemdManager
impl RefUnwindSafe for SystemdManager
impl Send for SystemdManager
impl Sync for SystemdManager
impl Unpin for SystemdManager
impl UnwindSafe for SystemdManager
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