Trait libflatpak::prelude::RemoteExt

source ·
pub trait RemoteExt:
    IsA<Remote>
    + Sealed
    + 'static {
Show 38 methods // Provided methods fn appstream_dir(&self, arch: Option<&str>) -> Option<File> { ... } fn appstream_timestamp(&self, arch: Option<&str>) -> Option<File> { ... } fn collection_id(&self) -> Option<GString> { ... } fn comment(&self) -> Option<GString> { ... } fn default_branch(&self) -> Option<GString> { ... } fn description(&self) -> Option<GString> { ... } fn is_disabled(&self) -> bool { ... } fn filter(&self) -> Option<GString> { ... } fn is_gpg_verify(&self) -> bool { ... } fn homepage(&self) -> Option<GString> { ... } fn icon(&self) -> Option<GString> { ... } fn main_ref(&self) -> Option<GString> { ... } fn name(&self) -> Option<GString> { ... } fn is_nodeps(&self) -> bool { ... } fn is_noenumerate(&self) -> bool { ... } fn prio(&self) -> i32 { ... } fn remote_type(&self) -> RemoteType { ... } fn title(&self) -> Option<GString> { ... } fn url(&self) -> Option<GString> { ... } fn set_collection_id(&self, collection_id: Option<&str>) { ... } fn set_comment(&self, comment: &str) { ... } fn set_default_branch(&self, default_branch: &str) { ... } fn set_description(&self, description: &str) { ... } fn set_disabled(&self, disabled: bool) { ... } fn set_filter(&self, filter_path: &str) { ... } fn set_gpg_key(&self, gpg_key: &Bytes) { ... } fn set_gpg_verify(&self, gpg_verify: bool) { ... } fn set_homepage(&self, homepage: &str) { ... } fn set_icon(&self, icon: &str) { ... } fn set_main_ref(&self, main_ref: &str) { ... } fn set_nodeps(&self, nodeps: bool) { ... } fn set_noenumerate(&self, noenumerate: bool) { ... } fn set_prio(&self, prio: i32) { ... } fn set_title(&self, title: &str) { ... } fn set_url(&self, url: &str) { ... } fn set_name(&self, name: Option<&str>) { ... } fn type_(&self) -> RemoteType { ... } fn connect_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Remote methods.

§Implementors

Remote

Provided Methods§

source

fn appstream_dir(&self, arch: Option<&str>) -> Option<File>

Returns the directory where this remote will store locally cached appstream information for the specified arch.

§arch

which architecture to fetch (default: current architecture)

§Returns

a gio::File

source

fn appstream_timestamp(&self, arch: Option<&str>) -> Option<File>

Returns the timestamp file that will be updated whenever the appstream information has been updated (or tried to update) for the specified arch.

§arch

which architecture to fetch (default: current architecture)

§Returns

a gio::File

source

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

Returns the repository collection ID of this remote, if set.

§Returns

the collection ID, or None if unset

source

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

Returns the comment of the remote.

§Returns

the comment

source

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

Returns the default branch configured for the remote.

§Returns

the default branch, or None

source

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

Returns the description of the remote.

§Returns

the description

source

fn is_disabled(&self) -> bool

Returns whether this remote is disabled.

§Returns

whether the remote is marked as disabled

source

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

Returns the filter file of the remote.

§Returns

a pathname to a filter file

source

fn is_gpg_verify(&self) -> bool

Returns whether GPG verification is enabled for the remote.

§Returns

whether GPG verification is enabled

source

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

Returns the homepage url of the remote.

§Returns

the homepage url

source

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

Returns the icon url of the remote.

§Returns

the icon url

source

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

source

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

Returns the name of the remote repository.

§Returns

the name

source

fn is_nodeps(&self) -> bool

Returns whether this remote should be used to find dependencies.

§Returns

whether the remote is marked as “don’t use for dependencies”

source

fn is_noenumerate(&self) -> bool

Returns whether this remote should be used to list applications.

§Returns

whether the remote is marked as “don’t enumerate”

source

fn prio(&self) -> i32

Returns the priority for the remote.

§Returns

the priority

source

fn remote_type(&self) -> RemoteType

Get the value of type.

§Returns

the type of remote this is

source

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

Returns the title of the remote.

§Returns

the title

source

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

Returns the repository URL of this remote.

§Returns

the URL

source

fn set_collection_id(&self, collection_id: Option<&str>)

Sets the repository collection ID of this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§collection_id

The new collection ID, or None to unset

source

fn set_comment(&self, comment: &str)

Sets the comment of this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§comment

The new comment

source

fn set_default_branch(&self, default_branch: &str)

Sets the default branch configured for this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§default_branch

The new default_branch, or None to unset

source

fn set_description(&self, description: &str)

Sets the description of this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§description

The new description

source

fn set_disabled(&self, disabled: bool)

Sets the disabled config of this remote. See is_disabled().

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§disabled

a bool

source

fn set_filter(&self, filter_path: &str)

Sets a filter for this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§filter_path

The pathname of the new filter file

source

fn set_gpg_key(&self, gpg_key: &Bytes)

Sets the trusted gpg key for this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§gpg_key

a glib::Bytes with gpg binary key data

source

fn set_gpg_verify(&self, gpg_verify: bool)

Sets the gpg_verify config of this remote. See is_gpg_verify().

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§gpg_verify

a bool

source

fn set_homepage(&self, homepage: &str)

Sets the homepage of this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§homepage

The new homepage

source

fn set_icon(&self, icon: &str)

Sets the homepage of this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§icon

The new homepage

source

fn set_main_ref(&self, main_ref: &str)

source

fn set_nodeps(&self, nodeps: bool)

Sets the nodeps config of this remote. See is_nodeps().

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§nodeps

a bool

source

fn set_noenumerate(&self, noenumerate: bool)

Sets the noenumeration config of this remote. See is_noenumerate().

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§noenumerate

a bool

source

fn set_prio(&self, prio: i32)

Sets the prio config of this remote. See prio().

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§prio

a bool

source

fn set_title(&self, title: &str)

Sets the repository title of this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§title

The new title, or None to unset

source

fn set_url(&self, url: &str)

Sets the repository URL of this remote.

Note: This is a local modification of this object, you must commit changes using InstallationExt::modify_remote() for the changes to take effect.

§url

The new url

source

fn set_name(&self, name: Option<&str>)

Name of the remote, as used in configuration files and when interfacing with OSTree. This is typically human readable, but could be generated, and must conform to ostree_validate_remote_name(). It should typically not be presented in the UI.

source

fn type_(&self) -> RemoteType

The type of the remote: whether it comes from static configuration files (RemoteType::Static) or has been dynamically found from the local network or a mounted USB drive (RemoteType::Lan, RemoteType::Usb). Dynamic remotes may be added and removed over time.

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Remote>> RemoteExt for O