pub struct SystemdManager { /* private fields */ }Expand description
SystemdManager handles service registration with systemd on Linux
Implementations§
Trait Implementations§
Source§impl Clone for SystemdManager
impl Clone for SystemdManager
Source§fn clone(&self) -> SystemdManager
fn clone(&self) -> SystemdManager
Returns a duplicate 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 SystemdManager
impl Debug for SystemdManager
Source§impl ServiceManager for SystemdManager
impl ServiceManager for SystemdManager
Source§fn install(&self, config: &ServiceConfig) -> Result<InstallResult>
fn install(&self, config: &ServiceConfig) -> Result<InstallResult>
Install the service with the given configuration Read more
Source§fn is_installed(&self) -> Result<bool>
fn is_installed(&self) -> Result<bool>
Check if the service is currently installed
Source§fn service_file_path(&self) -> PathBuf
fn service_file_path(&self) -> PathBuf
Get the path to the service file
Source§fn service_name(&self) -> &str
fn service_name(&self) -> &str
Get the service name
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request