Skip to main content

EntrySource

Trait EntrySource 

Source
pub trait EntrySource: Debug {
    // Required methods
    fn entry_name(&self) -> EntryName;
    fn alpm_db_desc(&self) -> Result<DbDescFile, Error>;
    fn alpm_db_files(&self) -> Result<DbFiles, Error>;
    fn alpm_mtree(&self) -> Result<MtreeTransfer, Error>;
    fn alpm_install_scriptlet(&self) -> Result<Option<String>, Error>;
}
Expand description

An interface for retrieving data for an entry that should be persisted in an alpm-db.

An Entry consists of a directory and several component files. As such, the EntrySource interface provides access to all relevant data to create an entry in an alpm-db:

Required Methods§

Source

fn entry_name(&self) -> EntryName

Returns a reference to the EntryName of the implementation.

Source

fn alpm_db_desc(&self) -> Result<DbDescFile, Error>

Returns the alpm-db-desc data of the implementation.

Source

fn alpm_db_files(&self) -> Result<DbFiles, Error>

Returns the alpm-db-files data of the implementation.

Source

fn alpm_mtree(&self) -> Result<MtreeTransfer, Error>

Returns the transferable ALPM-MTREE data of the implementation.

Source

fn alpm_install_scriptlet(&self) -> Result<Option<String>, Error>

Returns the optional alpm-install-scriptlet data of the implementation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§