pub struct SystemdUser { /* private fields */ }Expand description
A systemd --user service: <config dir>/systemd/user/<name>.service.
Implementations§
Source§impl SystemdUser
impl SystemdUser
Sourcepub fn for_current_user() -> Result<Self>
pub fn for_current_user() -> Result<Self>
The real manager for the current user ($XDG_CONFIG_HOME or ~/.config).
pub fn with_parts(runner: Box<dyn CommandRunner>, unit_dir: PathBuf) -> Self
Sourcepub fn unit(spec: &ServiceSpec) -> String
pub fn unit(spec: &ServiceSpec) -> String
The unit text for spec.
Trait Implementations§
Source§impl ServiceManager for SystemdUser
impl ServiceManager for SystemdUser
Auto Trait Implementations§
impl !RefUnwindSafe for SystemdUser
impl !UnwindSafe for SystemdUser
impl Freeze for SystemdUser
impl Send for SystemdUser
impl Sync for SystemdUser
impl Unpin for SystemdUser
impl UnsafeUnpin for SystemdUser
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