pub struct LaunchAgent { /* private fields */ }Expand description
A launchd user agent: ~/Library/LaunchAgents/<name>.plist, loaded into gui/<uid>.
Implementations§
Source§impl LaunchAgent
impl LaunchAgent
Sourcepub fn for_current_user() -> Result<Self>
pub fn for_current_user() -> Result<Self>
The real manager for the current user.
Sourcepub fn with_parts(
runner: Box<dyn CommandRunner>,
agents_dir: PathBuf,
uid: u32,
) -> Self
pub fn with_parts( runner: Box<dyn CommandRunner>, agents_dir: PathBuf, uid: u32, ) -> Self
A manager over an explicit runner, agents directory and uid.
Sourcepub fn plist(spec: &ServiceSpec) -> String
pub fn plist(spec: &ServiceSpec) -> String
The plist text for spec.
Trait Implementations§
Source§impl ServiceManager for LaunchAgent
impl ServiceManager for LaunchAgent
Auto Trait Implementations§
impl !RefUnwindSafe for LaunchAgent
impl !UnwindSafe for LaunchAgent
impl Freeze for LaunchAgent
impl Send for LaunchAgent
impl Sync for LaunchAgent
impl Unpin for LaunchAgent
impl UnsafeUnpin for LaunchAgent
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