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
Provided Methods§
sourcefn appdata_content_rating_type(&self) -> Option<GString>
fn appdata_content_rating_type(&self) -> Option<GString>
sourcefn appdata_license(&self) -> Option<GString>
fn appdata_license(&self) -> Option<GString>
sourcefn appdata_name(&self) -> Option<GString>
fn appdata_name(&self) -> Option<GString>
sourcefn appdata_summary(&self) -> Option<GString>
fn appdata_summary(&self) -> Option<GString>
sourcefn appdata_version(&self) -> Option<GString>
fn appdata_version(&self) -> Option<GString>
sourcefn deploy_dir(&self) -> Option<GString>
fn deploy_dir(&self) -> Option<GString>
sourcefn eol_rebase(&self) -> Option<GString>
fn eol_rebase(&self) -> Option<GString>
sourcefn installed_size(&self) -> u64
fn installed_size(&self) -> u64
sourcefn is_current(&self) -> bool
fn is_current(&self) -> bool
sourcefn latest_commit(&self) -> Option<GString>
fn latest_commit(&self) -> Option<GString>
sourcefn load_appdata(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<Bytes, Error>
fn load_appdata( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error>
Loads the compressed xml appdata for this ref (if it exists).
§cancellable
§Returns
a glib::Bytes
containing the compressed appdata file,
or None
if an error occurred
sourcefn load_metadata(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<Bytes, Error>
fn load_metadata( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error>
Loads the metadata file for this ref.
§cancellable
§Returns
a glib::Bytes
containing the metadata file,
or None
if an error occurred
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
Object Safety§
This trait is not object safe.