pub struct ServiceInstallCtx {
    pub label: ServiceLabel,
    pub program: PathBuf,
    pub args: Vec<OsString>,
}
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

Implementations

Iterator over the program and its arguments

Iterator over the program arguments

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.