Struct service_manager::ServiceInstallCtx
source · pub struct ServiceInstallCtx {
pub label: ServiceLabel,
pub program: PathBuf,
pub args: Vec<OsString>,
pub contents: Option<String>,
}
Expand description
Context provided to the install function of ServiceManager
Fields§
§label: ServiceLabel
Label associated with the service
E.g. org.example.my_application
program: PathBuf
Path to the program to run
E.g. /usr/local/bin/my-program
args: Vec<OsString>
Arguments to use for the program
E.g. --arg
, value
, --another-arg
contents: Option<String>
Optional contents of the service file for a given ServiceManager to use instead of the default template.
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ServiceInstallCtx
impl Send for ServiceInstallCtx
impl Sync for ServiceInstallCtx
impl Unpin for ServiceInstallCtx
impl UnwindSafe for ServiceInstallCtx
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