Struct remote_package::rpm::RpmRemotePackage
source · [−]pub struct RpmRemotePackage { /* private fields */ }
Expand description
A structure representing a remote RPM package.
Implementations
sourceimpl RpmRemotePackage
impl RpmRemotePackage
sourcepub fn new_from_url(url: &str) -> Result<Self, PkgError>
pub fn new_from_url(url: &str) -> Result<Self, PkgError>
Attempts to create an RpmRemotePackage
from a URL.
Uses a blocking tokio client to download the remote package - if using this in an async environment, surround this with tokio::spawn_blocking.
sourcepub fn new_from_read<R: Read>(reader: R) -> Result<Self, PkgError>
pub fn new_from_read<R: Read>(reader: R) -> Result<Self, PkgError>
Attempts to create a RpmRemotePackage
from something that impls
Read.
Trait Implementations
sourceimpl RemotePackage for RpmRemotePackage
impl RemotePackage for RpmRemotePackage
sourcefn package_iteration(&self) -> Option<&str>
fn package_iteration(&self) -> Option<&str>
For RPM, the package iteration is the release.
sourcefn package_type(&self) -> RemotePackageType
fn package_type(&self) -> RemotePackageType
Get the package type.
sourcefn package_name(&self) -> Result<&str, PkgError>
fn package_name(&self) -> Result<&str, PkgError>
Get the package name.
sourcefn package_version(&self) -> Result<&str, PkgError>
fn package_version(&self) -> Result<&str, PkgError>
Get the package version.
sourcefn package_arch(&self) -> Result<&str, PkgError>
fn package_arch(&self) -> Result<&str, PkgError>
Get the package architecture.
Auto Trait Implementations
impl RefUnwindSafe for RpmRemotePackage
impl Send for RpmRemotePackage
impl Sync for RpmRemotePackage
impl Unpin for RpmRemotePackage
impl UnwindSafe for RpmRemotePackage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more