[][src]Struct aur_depends::Actions

pub struct Actions<'a> {
    pub duplicates: Vec<String>,
    pub missing: Vec<Missing>,
    pub unneeded: Vec<String>,
    pub build: Vec<Base>,
    pub install: Vec<RepoPackage<'a>>,
    pub conflicts: Vec<Conflict>,
    pub inner_conflicts: Vec<Conflict>,
}

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

duplicates: Vec<String>

There were duplicate packages in install/build. This means that two different packages with the same name want to be installed. As this can not be done it should be treated as a hard error.

missing: Vec<Missing>

Some of the targets or dependencies could not be satisfied. This should be treated as a hard error.

unneeded: Vec<String>

Targets that are up to date.

build: Vec<Base>

Aur packages to build.

install: Vec<RepoPackage<'a>>

Repo packages to install.

conflicts: Vec<Conflict>

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.

inner_conflicts: Vec<Conflict>

Inner conflict. The same rules that apply to conflicts apply here.

Implementations

impl<'a> Actions<'a>[src]

pub fn iter_build_pkgs(&self) -> impl Iterator<Item = &AurPackage>[src]

An iterator over each individual package in self.build.

Trait Implementations

impl<'a> Debug for Actions<'a>[src]

impl<'a> Default for Actions<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err