Trait libflatpak::prelude::InstalledRefExt

source ·
pub trait InstalledRefExt:
    IsA<InstalledRef>
    + Sealed
    + 'static {
Show 29 methods // Provided methods fn appdata_content_rating_type(&self) -> Option<GString> { ... } fn appdata_license(&self) -> Option<GString> { ... } fn appdata_name(&self) -> Option<GString> { ... } fn appdata_summary(&self) -> Option<GString> { ... } fn appdata_version(&self) -> Option<GString> { ... } fn deploy_dir(&self) -> Option<GString> { ... } fn eol(&self) -> Option<GString> { ... } fn eol_rebase(&self) -> Option<GString> { ... } fn installed_size(&self) -> u64 { ... } fn is_current(&self) -> bool { ... } fn latest_commit(&self) -> Option<GString> { ... } fn origin(&self) -> Option<GString> { ... } fn subpaths(&self) -> Vec<GString> { ... } fn load_appdata( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error> { ... } fn load_metadata( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error> { ... } fn set_deploy_dir(&self, deploy_dir: Option<&str>) { ... } fn end_of_life(&self) -> Option<GString> { ... } fn end_of_life_rebase(&self) -> Option<GString> { ... } fn set_installed_size(&self, installed_size: u64) { ... } fn set_is_current(&self, is_current: bool) { ... } fn set_latest_commit(&self, latest_commit: Option<&str>) { ... } fn set_origin(&self, origin: Option<&str>) { ... } fn set_subpaths(&self, subpaths: &[&str]) { ... } fn connect_deploy_dir_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_installed_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_current_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_latest_commit_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_origin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_subpaths_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all InstalledRef methods.

§Implementors

InstalledRef

Provided Methods§

source

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

Returns the content rating type from the appdata. For example, oars-1.0 or oars-1.1.

§Returns

the content rating type or None

source

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

Returns the license field from the appdata.

§Returns

the license or None

source

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

Returns the name field from the appdata.

The returned string is localized.

§Returns

the name or None

source

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

Returns the summary field from the appdata.

The returned string is localized.

§Returns

the summary or None

source

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

Returns the default version field from the appdata.

§Returns

the version or None

source

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

Gets the deploy dir of the ref.

§Returns

the deploy dir

source

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

Returns the end-of-life reason string, or None if the ref is not end-of-lifed.

§Returns

the end-of-life reason or None

source

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

Returns the end-of-life rebased ref, or None if the ref is not end-of-lifed.

§Returns

the end-of-life rebased ref or None

source

fn installed_size(&self) -> u64

Returns the installed size of the ref.

§Returns

the installed size

source

fn is_current(&self) -> bool

Returns whether the ref is current.

§Returns

true if the ref is current

source

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

Gets the latest commit of the ref.

§Returns

the latest commit

source

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

Gets the origin of the ref.

§Returns

the origin

source

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

Returns the subpaths that are installed, or None if all files installed.

§Returns

A strv, or None

source

fn load_appdata( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error>

Loads the compressed xml appdata for this ref (if it exists).

§cancellable

a gio::Cancellable

§Returns

a glib::Bytes containing the compressed appdata file, or None if an error occurred

source

fn load_metadata( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error>

Loads the metadata file for this ref.

§cancellable

a gio::Cancellable

§Returns

a glib::Bytes containing the metadata file, or None if an error occurred

source

fn set_deploy_dir(&self, deploy_dir: Option<&str>)

source

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

source

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

source

fn set_installed_size(&self, installed_size: u64)

source

fn set_is_current(&self, is_current: bool)

source

fn set_latest_commit(&self, latest_commit: Option<&str>)

source

fn set_origin(&self, origin: Option<&str>)

source

fn set_subpaths(&self, subpaths: &[&str])

source

fn connect_deploy_dir_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_installed_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_current_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_latest_commit_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_origin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_subpaths_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§