Enum mcvm_shared::pkg::PkgRequestSource
source · pub enum PkgRequestSource {
UserRequire,
Bundled(ArcPkgReq),
Dependency(ArcPkgReq),
Refused(ArcPkgReq),
Repository,
}
Expand description
Where a package was requested from
Variants§
UserRequire
This package was required by the user
Bundled(ArcPkgReq)
This package was bundled by another package
Dependency(ArcPkgReq)
This package was depended on by another package
Refused(ArcPkgReq)
This package was refused by another package
Repository
This package was requested by some automatic system
Implementations§
source§impl PkgRequestSource
impl PkgRequestSource
sourcepub fn get_source(&self) -> Option<ArcPkgReq>
pub fn get_source(&self) -> Option<ArcPkgReq>
Gets the source package of this package, if any
sourcepub fn is_user_bundled(&self) -> bool
pub fn is_user_bundled(&self) -> bool
Gets whether this source list is only bundles that lead up to a UserRequire
Trait Implementations§
source§impl Clone for PkgRequestSource
impl Clone for PkgRequestSource
source§fn clone(&self) -> PkgRequestSource
fn clone(&self) -> PkgRequestSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PkgRequestSource
impl Debug for PkgRequestSource
source§impl Hash for PkgRequestSource
impl Hash for PkgRequestSource
source§impl Ord for PkgRequestSource
impl Ord for PkgRequestSource
source§impl PartialEq for PkgRequestSource
impl PartialEq for PkgRequestSource
source§fn eq(&self, other: &PkgRequestSource) -> bool
fn eq(&self, other: &PkgRequestSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PkgRequestSource
impl PartialOrd for PkgRequestSource
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PkgRequestSource
impl StructuralEq for PkgRequestSource
impl StructuralPartialEq for PkgRequestSource
Auto Trait Implementations§
impl RefUnwindSafe for PkgRequestSource
impl Send for PkgRequestSource
impl Sync for PkgRequestSource
impl Unpin for PkgRequestSource
impl UnwindSafe for PkgRequestSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more