Struct aur_depends::Actions
source · [−]pub struct Actions<'a> {
pub missing: Vec<Missing>,
pub unneeded: Vec<Unneeded>,
pub build: Vec<Base>,
pub install: Vec<RepoPackage<'a>>,
/* private fields */
}
Expand description
The response from resolving dependencies.
Note that just because resolving returned Ok() does not mean it is safe to bindly start installing these packages.
Fields
missing: Vec<Missing>
Some of the targets or dependencies could not be satisfied. This should be treated as a hard error.
unneeded: Vec<Unneeded>
Targets that are up to date.
build: Vec<Base>
Aur packages to build.
install: Vec<RepoPackage<'a>>
Repo packages to install.
Implementations
sourceimpl<'a> Actions<'a>
impl<'a> Actions<'a>
sourcepub fn iter_aur_pkgs(&self) -> impl Iterator<Item = &AurPackage>
pub fn iter_aur_pkgs(&self) -> impl Iterator<Item = &AurPackage>
An iterator over each AUR package in self.build.
sourcepub fn iter_custom_pkgs(
&self
) -> impl Iterator<Item = (&Srcinfo, &CustomPackage)>
pub fn iter_custom_pkgs(
&self
) -> impl Iterator<Item = (&Srcinfo, &CustomPackage)>
An iterator over each custom package in self.build.
sourceimpl<'a> Actions<'a>
impl<'a> Actions<'a>
sourcepub fn calculate_conflicts(&self, makedeps: bool) -> Vec<Conflict>
pub fn calculate_conflicts(&self, makedeps: bool) -> Vec<Conflict>
Calculate conflicts. Do note that even with conflicts it can still be possible to continue and install the packages. Although that is not checked here.
For example installing pacman-git will conflict with pacman. But the install will still succeed as long as the user hits yes to pacman’s prompt to remove pacman.
However other cases are more complex and can not be automatically resolved. So it is up to the user to decide how to handle these.
makedeps: if true, include make dependencies in the conflict calculation.
sourcepub fn calculate_inner_conflicts(&self, makedeps: bool) -> Vec<Conflict>
pub fn calculate_inner_conflicts(&self, makedeps: bool) -> Vec<Conflict>
Calculate inner conflicts. Do note that even with conflicts it can still be possible to continue and install the packages. Although that is not checked here.
For example installing pacman-git will conflict with pacman. But the install will still succeed as long as the user hits yes to pacman’s prompt to remove pacman.
However other cases are more complex and can not be automatically resolved. So it is up to the user to decide how to handle these.
makedeps: if true, include make dependencies in the conflict calculation.
sourcepub fn duplicate_targets(&self) -> Vec<String>
pub fn duplicate_targets(&self) -> Vec<String>
Find duplicate targets. It is possible to have duplicate targets if packages with the same name exist across repos.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Actions<'a>
impl<'a> !Send for Actions<'a>
impl<'a> !Sync for Actions<'a>
impl<'a> Unpin for Actions<'a>
impl<'a> !UnwindSafe for Actions<'a>
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>
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