aur_depends

Struct 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§

Source§

impl<'a> Actions<'a>

Source

pub fn iter_aur_pkgs(&self) -> impl Iterator<Item = &AurPackage>

An iterator over each AUR package in self.build.

Source

pub fn iter_pkgbuilds(&self) -> impl Iterator<Item = (&Srcinfo, &Pkgbuild)>

An iterator over each pkgbuild in self.build.

Source§

impl<'a> Actions<'a>

Source

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.

Source

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.

Source

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§

Source§

impl<'a> Debug for Actions<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Actions<'a>

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T