pub trait RemotePackage {
    fn package_type(&self) -> RemotePackageType;
    fn package_name(&self) -> Result<&str, PkgError>;
    fn package_version(&self) -> Result<&str, PkgError>;
    fn package_iteration(&self) -> Option<&str>;
    fn package_arch(&self) -> Result<&str, PkgError>;
}
Expand description

Trait representing a remote package.

All remote packages support these methods.

Required Methods

Get the package type.

Get the package name.

Get the package version.

Get the package iteration. Different package types get this from different places.

Get the package architecture.

Implementors