Trait InstallationExt

Source
pub trait InstallationExt:
    IsA<Installation>
    + Sealed
    + 'static {
Show 44 methods // Provided methods fn add_remote( &self, remote: &impl IsA<Remote>, if_needed: bool, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn cleanup_local_refs_sync( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn create_monitor( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<FileMonitor, Error> { ... } fn drop_caches( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn fetch_remote_metadata_sync( &self, remote_name: &str, ref_: &impl IsA<Ref>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error> { ... } fn fetch_remote_ref_sync( &self, remote_name: &str, kind: RefKind, name: &str, arch: Option<&str>, branch: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<RemoteRef, Error> { ... } fn fetch_remote_ref_sync_full( &self, remote_name: &str, kind: RefKind, name: &str, arch: Option<&str>, branch: Option<&str>, flags: QueryFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<RemoteRef, Error> { ... } fn fetch_remote_size_sync( &self, remote_name: &str, ref_: &impl IsA<Ref>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(u64, u64), Error> { ... } fn config( &self, key: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<GString, Error> { ... } fn current_installed_app( &self, name: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<InstalledRef, Error> { ... } fn default_languages(&self) -> Result<Vec<GString>, Error> { ... } fn default_locales(&self) -> Result<Vec<GString>, Error> { ... } fn display_name(&self) -> Option<GString> { ... } fn id(&self) -> Option<GString> { ... } fn installed_ref( &self, kind: RefKind, name: &str, arch: Option<&str>, branch: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<InstalledRef, Error> { ... } fn is_user(&self) -> bool { ... } fn min_free_space_bytes(&self) -> Result<u64, Error> { ... } fn is_no_interaction(&self) -> bool { ... } fn path(&self) -> Option<File> { ... } fn priority(&self) -> i32 { ... } fn remote_by_name( &self, name: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Remote, Error> { ... } fn storage_type(&self) -> StorageType { ... } fn install_ref_file( &self, ref_file_data: &Bytes, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<RemoteRef, Error> { ... } fn launch( &self, name: &str, arch: Option<&str>, branch: Option<&str>, commit: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn list_installed_refs( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error> { ... } fn list_installed_refs_by_kind( &self, kind: RefKind, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error> { ... } fn list_installed_refs_for_update( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error> { ... } fn list_installed_related_refs_sync( &self, remote_name: &str, ref_: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<RelatedRef>, Error> { ... } fn list_pinned_refs( &self, arch: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error> { ... } fn list_remote_refs_sync( &self, remote_or_uri: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<RemoteRef>, Error> { ... } fn list_remote_refs_sync_full( &self, remote_or_uri: &str, flags: QueryFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<RemoteRef>, Error> { ... } fn list_remote_related_refs_for_installed_sync( &self, remote_name: &str, ref_: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<RelatedRef>, Error> { ... } fn list_remote_related_refs_sync( &self, remote_name: &str, ref_: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<RelatedRef>, Error> { ... } fn list_remotes( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<Remote>, Error> { ... } fn list_unused_refs( &self, arch: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error> { ... } fn load_app_overrides( &self, app_id: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<GString, Error> { ... } fn modify_remote( &self, remote: &impl IsA<Remote>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn prune_local_repo( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn remove_local_ref_sync( &self, remote_name: &str, ref_: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn remove_remote( &self, name: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn run_triggers( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn set_config_sync( &self, key: &str, value: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn set_no_interaction(&self, no_interaction: bool) { ... } fn update_remote_sync( &self, name: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... }
}

Provided Methods§

Source

fn add_remote( &self, remote: &impl IsA<Remote>, if_needed: bool, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Available on crate feature v1_3_4 only.
Source

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

Source

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

Source

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

Source

fn fetch_remote_metadata_sync( &self, remote_name: &str, ref_: &impl IsA<Ref>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error>

Source

fn fetch_remote_ref_sync( &self, remote_name: &str, kind: RefKind, name: &str, arch: Option<&str>, branch: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<RemoteRef, Error>

Source

fn fetch_remote_ref_sync_full( &self, remote_name: &str, kind: RefKind, name: &str, arch: Option<&str>, branch: Option<&str>, flags: QueryFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<RemoteRef, Error>

Available on crate feature v1_3_3 only.
Source

fn fetch_remote_size_sync( &self, remote_name: &str, ref_: &impl IsA<Ref>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(u64, u64), Error>

Source

fn config( &self, key: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<GString, Error>

Source

fn current_installed_app( &self, name: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<InstalledRef, Error>

Source

fn default_languages(&self) -> Result<Vec<GString>, Error>

Available on crate feature v1_5 only.
Source

fn default_locales(&self) -> Result<Vec<GString>, Error>

Available on crate feature v1_5_1 only.
Source

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

Source

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

Source

fn installed_ref( &self, kind: RefKind, name: &str, arch: Option<&str>, branch: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<InstalledRef, Error>

Source

fn is_user(&self) -> bool

Source

fn min_free_space_bytes(&self) -> Result<u64, Error>

Available on crate feature v1_1 only.
Source

fn is_no_interaction(&self) -> bool

Available on crate feature v1_1_1 only.
Source

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

Source

fn priority(&self) -> i32

Source

fn remote_by_name( &self, name: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Remote, Error>

Source

fn storage_type(&self) -> StorageType

Source

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

👎Deprecated: Since 1.7
Source

fn launch( &self, name: &str, arch: Option<&str>, branch: Option<&str>, commit: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Source

fn list_installed_refs( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error>

Source

fn list_installed_refs_by_kind( &self, kind: RefKind, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error>

Source

fn list_installed_refs_for_update( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error>

Source

fn list_pinned_refs( &self, arch: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error>

Available on crate feature v1_9_1 only.
Source

fn list_remote_refs_sync( &self, remote_or_uri: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<RemoteRef>, Error>

Source

fn list_remote_refs_sync_full( &self, remote_or_uri: &str, flags: QueryFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<RemoteRef>, Error>

Available on crate feature v1_3_3 only.
Available on crate feature v1_11_1 only.
Source

fn list_remotes( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<Remote>, Error>

Source

fn list_unused_refs( &self, arch: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InstalledRef>, Error>

Available on crate feature v1_1_2 only.
Source

fn load_app_overrides( &self, app_id: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<GString, Error>

Source

fn modify_remote( &self, remote: &impl IsA<Remote>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Source

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

Source

fn remove_local_ref_sync( &self, remote_name: &str, ref_: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Source

fn remove_remote( &self, name: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Source

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

Available on crate feature v1_0_3 only.
Source

fn set_config_sync( &self, key: &str, value: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Source

fn set_no_interaction(&self, no_interaction: bool)

Available on crate feature v1_1_1 only.
Source

fn update_remote_sync( &self, name: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§