Trait libflatpak::prelude::BundleRefExt

source ·
pub trait BundleRefExt:
    IsA<BundleRef>
    + Sealed
    + 'static {
    // Provided methods
    fn appstream(&self) -> Option<Bytes> { ... }
    fn file(&self) -> Option<File> { ... }
    fn icon(&self, size: i32) -> Option<Bytes> { ... }
    fn installed_size(&self) -> u64 { ... }
    fn metadata(&self) -> Option<Bytes> { ... }
    fn origin(&self) -> Option<GString> { ... }
    fn runtime_repo_url(&self) -> Option<GString> { ... }
}
Expand description

Trait containing all BundleRef methods.

§Implementors

BundleRef

Provided Methods§

source

fn appstream(&self) -> Option<Bytes>

Get the compressed appstream for the app/runtime

§Returns

an glib::Bytes with the appstream contents, or None

source

fn file(&self) -> Option<File>

Get the file this bundle is stored in.

§Returns

an gio::File

source

fn icon(&self, size: i32) -> Option<Bytes>

Get the icon png data for the app/runtime

§size

64 or 128

§Returns

an glib::Bytes with png contents

source

fn installed_size(&self) -> u64

Returns the installed size for the bundle.

§Returns

the installed size

source

fn metadata(&self) -> Option<Bytes>

Get the metadata for the app/runtime

§Returns

an glib::Bytes with the metadata contents, or None

source

fn origin(&self) -> Option<GString>

Get the origin url stored in the bundle

§Returns

an url string, or None

source

fn runtime_repo_url(&self) -> Option<GString>

Get the runtime flatpakrepo url stored in the bundle (if any)

§Returns

an url string, or None

Object Safety§

This trait is not object safe.

Implementors§