LaunchControllable

Trait LaunchControllable 

Source
pub trait LaunchControllable {
    // Required methods
    fn bootstrap(&self) -> LaunchctlResult<()>;
    fn boot_out(&self) -> LaunchctlResult<()>;
    fn is_running(&self) -> LaunchctlResult<bool>;
}
Expand description

Trait for controlling launch agents via launchctl.

Required Methods§

Source

fn bootstrap(&self) -> LaunchctlResult<()>

Bootstrap the launch agent.

Source

fn boot_out(&self) -> LaunchctlResult<()>

Boot out the launch agent.

Source

fn is_running(&self) -> LaunchctlResult<bool>

Check if the launch agent is running.

Implementors§