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:
- the name of the entry
- the alpm-db-desc data
- the alpm-db-files data
- the ALPM-MTREE file
- the optional alpm-install-scriptlet data
Required Methods§
Sourcefn entry_name(&self) -> EntryName
fn entry_name(&self) -> EntryName
Returns a reference to the EntryName of the implementation.
Sourcefn alpm_db_desc(&self) -> Result<DbDescFile, Error>
fn alpm_db_desc(&self) -> Result<DbDescFile, Error>
Returns the alpm-db-desc data of the implementation.
Sourcefn alpm_db_files(&self) -> Result<DbFiles, Error>
fn alpm_db_files(&self) -> Result<DbFiles, Error>
Returns the alpm-db-files data of the implementation.
Sourcefn alpm_mtree(&self) -> Result<MtreeTransfer, Error>
fn alpm_mtree(&self) -> Result<MtreeTransfer, Error>
Returns the transferable ALPM-MTREE data of the implementation.
Sourcefn alpm_install_scriptlet(&self) -> Result<Option<String>, Error>
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".