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.

Get a reference to the underlying Proxy.

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 - A SpawnOptions.

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.

Flags marking what optional features are available.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.