pub struct ServiceSpec {
pub exec: Vec<String>,
pub token_env: Option<String>,
pub user: bool,
}Expand description
What the service unit runs.
Fields§
§exec: Vec<String>Full argv to exec, e.g. ["/usr/bin/omni","daemon","--listen","127.0.0.1:8766","--backend","xdotool"].
token_env: Option<String>Env var that holds the shared token (referenced via an EnvironmentFile,
never baked into the unit). None = no auth wiring.
user: boolUser-scope service (systemd –user / LaunchAgent) vs. system-scope.
Trait Implementations§
Source§impl Clone for ServiceSpec
impl Clone for ServiceSpec
Source§fn clone(&self) -> ServiceSpec
fn clone(&self) -> ServiceSpec
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 moreAuto 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