Struct ashpd::flatpak::FlatpakProxy [−][src]
pub struct FlatpakProxy<'a>(_);
Expand description
The interface exposes some interactions with Flatpak on the host to the sandbox. For example, it allows you to restart the applications or start a more sandboxed instance.
Implementations
Create a new instance of FlatpakProxy
.
Creates an update monitor object that will emit signals when an update for the caller becomes available, and can be used to install it.
Emitted when a process starts by FlatpakProxy::spawn
.
Emitted when a process started by FlatpakProxy::spawn
exits.
This methods let you start a new instance of your application, optionally enabling a tighter sandbox.
Returns the PID of the new process.
Arguments
cwd_path
- The working directory for the new process.arvg
- The argv for the new process, starting with the executable to launch.fds
- Array of file descriptors to pass to the new process.envs
- Array of variable/value pairs for the environment of the new process.flags
options
- ASpawnOptions
.
This methods let you send a Unix signal to a process that was started
spawn
.
Arguments
pid
- The PID of the process to send the signal to.signal
- The signal to send.to_process_group
- Whether to send the signal to the process group.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FlatpakProxy<'a>
impl<'a> Send for FlatpakProxy<'a>
impl<'a> Sync for FlatpakProxy<'a>
impl<'a> Unpin for FlatpakProxy<'a>
impl<'a> !UnwindSafe for FlatpakProxy<'a>