Trait libflatpak::prelude::RelatedRefExt

source ·
pub trait RelatedRefExt:
    IsA<RelatedRef>
    + Sealed
    + 'static {
    // Provided methods
    fn subpaths(&self) -> Vec<GString> { ... }
    fn should_autoprune(&self) -> bool { ... }
    fn should_delete(&self) -> bool { ... }
    fn should_download(&self) -> bool { ... }
}
Expand description

Trait containing all RelatedRef methods.

§Implementors

RelatedRef

Provided Methods§

source

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

Returns the subpaths that should be installed/updated for the ref. This returns None if all files should be installed.

§Returns

A strv, or None

source

fn should_autoprune(&self) -> bool

Returns whether to delete when pruning unused refs.

§Returns

true if the ref should be considered unused when pruning.

source

fn should_delete(&self) -> bool

Returns whether to auto-delete the ref with the main ref.

§Returns

true if the ref should be deleted with the main ref.

source

fn should_download(&self) -> bool

Returns whether to auto-download the ref with the main ref.

§Returns

true if the ref should be downloaded with the main ref.

Object Safety§

This trait is not object safe.

Implementors§