pub struct ServiceSpec {
pub name: String,
pub exec: PathBuf,
pub args: Vec<String>,
pub env: Vec<(String, String)>,
pub restart: RestartPolicy,
}Expand description
What to run.
Fields§
§name: StringThe service name: [A-Za-z0-9._-], at most 128 characters. launchd uses it as the label.
exec: PathBufThe program: an absolute path.
args: Vec<String>§env: Vec<(String, String)>Environment variables for the service. Not supported by Task Scheduler (refused there).
restart: RestartPolicyImplementations§
Trait Implementations§
Source§impl Clone for ServiceSpec
impl Clone for ServiceSpec
Source§impl Debug for ServiceSpec
impl Debug for ServiceSpec
impl Eq for ServiceSpec
Source§impl PartialEq for ServiceSpec
impl PartialEq for ServiceSpec
impl StructuralPartialEq for ServiceSpec
Auto Trait Implementations§
impl Freeze for ServiceSpec
impl RefUnwindSafe for ServiceSpec
impl Send for ServiceSpec
impl Sync for ServiceSpec
impl Unpin for ServiceSpec
impl UnsafeUnpin for ServiceSpec
impl UnwindSafe for ServiceSpec
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