pub struct AutostartProgram<'a> {
pub identifier: &'a str,
pub label: &'a str,
pub description: &'a str,
pub program: &'a Path,
pub start_argument: &'a str,
pub stop_argument: &'a str,
}Expand description
What a caller wants started at login.
The two names are separate because the hosts disagree about what a name is: launchd requires a reverse-DNS label, systemd and Task Scheduler want a plain stem. Deriving one from the other would be a guess, so the caller states both.
Fields§
§identifier: &'a strPlain stem: the systemd unit name and the Task Scheduler task name.
label: &'a strReverse-DNS label, as launchd requires.
description: &'a strOne line describing the program, for hosts that record one.
program: &'a PathThe program to run.
start_argument: &'a strThe argument that starts it.
stop_argument: &'a strThe argument that stops it, for hosts that ask for one.
Trait Implementations§
Source§impl<'a> Clone for AutostartProgram<'a>
impl<'a> Clone for AutostartProgram<'a>
Source§fn clone(&self) -> AutostartProgram<'a>
fn clone(&self) -> AutostartProgram<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AutostartProgram<'a>
Auto Trait Implementations§
impl<'a> Freeze for AutostartProgram<'a>
impl<'a> RefUnwindSafe for AutostartProgram<'a>
impl<'a> Send for AutostartProgram<'a>
impl<'a> Sync for AutostartProgram<'a>
impl<'a> Unpin for AutostartProgram<'a>
impl<'a> UnsafeUnpin for AutostartProgram<'a>
impl<'a> UnwindSafe for AutostartProgram<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more