Struct rd_util::systemd::TransientService
source · pub struct TransientService {
pub unit: Unit,
pub args: Vec<String>,
pub envs: Vec<String>,
pub extra_props: HashMap<String, Prop>,
pub keep: bool,
}
Fields§
§unit: Unit
§args: Vec<String>
§envs: Vec<String>
§extra_props: HashMap<String, Prop>
§keep: bool
Implementations§
source§impl TransientService
impl TransientService
pub fn new( user: bool, name: String, args: Vec<String>, envs: Vec<String>, umask: Option<u32> ) -> Result<Self>
pub fn new_sys( name: String, args: Vec<String>, envs: Vec<String>, umask: Option<u32> ) -> Result<Self>
pub fn new_user( name: String, args: Vec<String>, envs: Vec<String>, umask: Option<u32> ) -> Result<Self>
pub fn add_prop(&mut self, key: String, v: Prop) -> &mut Self
pub fn del_prop(&mut self, key: &String) -> (&mut Self, Option<Prop>)
pub fn set_slice(&mut self, slice: &str) -> &mut Self
pub fn set_working_dir(&mut self, dir: &str) -> &mut Self
pub fn set_restart_always(&mut self) -> &mut Self
pub fn set_quiet(&mut self) -> &mut Self
pub fn start(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TransientService
impl Send for TransientService
impl Sync for TransientService
impl Unpin for TransientService
impl UnwindSafe for TransientService
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