[][src]Struct lib_poki_launcher::App

pub struct App {
    pub name: String,
    pub uuid: String,
    pub icon: String,
    // some fields omitted
}

An app on your machine.

Fields

name: String

Display name of the app.

uuid: String

Uuid used to uniquely identify this app. This is saved to find the app later when the list changes.

icon: String

Icon name for this app. The icon name has to be looked up in the system's icon theme to get a file path.

Methods

impl App[src]

pub fn run(&self) -> Result<(), Error>[src]

Run the app.

impl App[src]

pub fn new(name: String, icon: String, exec: String) -> App[src]

Create a new app.

pub fn merge(&mut self, other: &App)[src]

Set this app's name, icon, and exec to the values of the other app.

Trait Implementations

impl Clone for App[src]

impl Default for App[src]

impl Eq for App[src]

impl Ord for App[src]

impl PartialEq<App> for App[src]

impl PartialOrd<App> for App[src]

impl Display for App[src]

impl Debug for App[src]

impl Serialize for App[src]

impl<'de> Deserialize<'de> for App[src]

Auto Trait Implementations

impl Send for App

impl Sync for App

impl Unpin for App

impl UnwindSafe for App

impl RefUnwindSafe for App

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]