libappstream::prelude

Trait LaunchableExt

source
pub trait LaunchableExt:
    IsA<Launchable>
    + Sealed
    + 'static {
    // Provided methods
    fn add_entry(&self, entry: &str) { ... }
    fn entries(&self) -> Vec<GString> { ... }
    fn kind(&self) -> LaunchableKind { ... }
    fn set_kind(&self, kind: LaunchableKind) { ... }
}
Expand description

Trait containing all Launchable methods.

§Implementors

Launchable

Provided Methods§

source

fn add_entry(&self, entry: &str)

Add a new launchable entry.

source

fn entries(&self) -> Vec<GString>

Get an array of launchable entries.

§Returns

An string list of launch entries.

source

fn kind(&self) -> LaunchableKind

The launch system for the entries this Launchable object stores.

§Returns

an enum of type LaunchableKind

source

fn set_kind(&self, kind: LaunchableKind)

Set the launch system for the entries this Launchable object stores.

§kind

the new LaunchableKind

Object Safety§

This trait is not object safe.

Implementors§