Trait libflatpak::prelude::InstanceExt
source · pub trait InstanceExt:
IsA<Instance>
+ Sealed
+ 'static {
// Provided methods
fn app(&self) -> Option<GString> { ... }
fn arch(&self) -> Option<GString> { ... }
fn branch(&self) -> Option<GString> { ... }
fn child_pid(&self) -> i32 { ... }
fn commit(&self) -> Option<GString> { ... }
fn id(&self) -> Option<GString> { ... }
fn info(&self) -> Option<KeyFile> { ... }
fn pid(&self) -> i32 { ... }
fn runtime(&self) -> Option<GString> { ... }
fn runtime_commit(&self) -> Option<GString> { ... }
fn is_running(&self) -> bool { ... }
}
Provided Methods§
sourcefn id(&self) -> Option<GString>
fn id(&self) -> Option<GString>
Gets the instance ID. The ID is used by Flatpak for bookkeeping purposes and has no further relevance.
§Returns
the instance ID
sourcefn info(&self) -> Option<KeyFile>
fn info(&self) -> Option<KeyFile>
Gets a keyfile that holds information about the running sandbox.
This file is available as /.flatpak-info inside the sandbox as well.
The most important data in the keyfile is available with separate getters, but there may be more information in the keyfile.
§Returns
the flatpak-info keyfile
sourcefn pid(&self) -> i32
fn pid(&self) -> i32
Gets the PID of the outermost process in the sandbox. This is not the application process itself, but a bubblewrap ‘babysitter’ process.
See child_pid()
.
§Returns
the outermost process PID
sourcefn runtime_commit(&self) -> Option<GString>
fn runtime_commit(&self) -> Option<GString>
sourcefn is_running(&self) -> bool
fn is_running(&self) -> bool
Object Safety§
This trait is not object safe.