Skip to main content

Resolution

Struct Resolution 

Source
pub struct Resolution { /* private fields */ }
Expand description

One resolution of a request’s packs.

Implementations§

Source§

impl Resolution

Source

pub fn new(options: Options) -> Self

A resolution with the host’s options.

Source

pub fn next_steps(&mut self) -> Next

What the host is to do next: the steps ready, or what the resolution gave once nothing is missing.

Source

pub fn give(&mut self, id: StepId, answer: Answer)

The host’s answer to the step id. An answer to no step waiting, or of the wrong kind, changes nothing.

Source

pub fn give_up(&mut self, pack: &PackName, after: Duration)

Gives up on pack, which hasn’t come after the host’s timeout: each of its imports not resolved yet is a problem, and stays missing, so a host that shows it as pending meanwhile (spec §6.4) stops, and the processor reports F026.

Trait Implementations§

Source§

impl Debug for Resolution

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Resolution

§

impl Freeze for Resolution
where *const LeafNode<String, String> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, String)>>: Freeze, *const u8 is !null: Freeze, PhantomData<Denied>: Freeze, PhantomData<Step>: Freeze, *const LeafNode<u64, Waiting> is !null: Freeze, PhantomData<Box<(u64, Waiting)>>: Freeze, PhantomData<(String, ())>: Freeze, PhantomData<Need>: Freeze, PhantomData<usize>: Freeze, *const LeafNode<PackName, Vec<String>> is !null: Freeze, PhantomData<Box<(PackName, Vec<String>)>>: Freeze, *const LeafNode<String, Fetch> is !null: Freeze, PhantomData<Box<(String, Fetch)>>: Freeze, *const LeafNode<PackName, Vec<Release>> is !null: Freeze, PhantomData<Box<(PackName, Vec<Release>)>>: Freeze, *const LeafNode<PackName, String> is !null: Freeze, PhantomData<Box<(PackName, String)>>: Freeze, *const LeafNode<String, FrameFile> is !null: Freeze, PhantomData<Box<(String, FrameFile)>>: Freeze, PhantomData<Problem>: Freeze,

§

impl Move for Resolution

§

impl RefUnwindSafe for Resolution

§

impl Send for Resolution
where NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send, RawVecInner: Send, Identifier: Send, NodeRef<Owned, PackName, String, LeafOrInternal>: Send, BoxRaw<(PackName, String)>: Send, NodeRef<Owned, String, Vec<u8>, LeafOrInternal>: Send, BoxRaw<(String, Vec<u8>)>: Send, NodeRef<Owned, u64, Waiting, LeafOrInternal>: Send, BoxRaw<(u64, Waiting)>: Send, RawTable<(String, ())>: Send, NodeRef<Owned, PackName, Vec<String>, LeafOrInternal>: Send, BoxRaw<(PackName, Vec<String>)>: Send, NodeRef<Owned, String, Fetch, LeafOrInternal>: Send, BoxRaw<(String, Fetch)>: Send, NodeRef<Owned, PackName, Vec<Release>, LeafOrInternal>: Send, BoxRaw<(PackName, Vec<Release>)>: Send, NodeRef<Owned, String, FrameFile, LeafOrInternal>: Send, BoxRaw<(String, FrameFile)>: Send,

§

impl Sync for Resolution
where NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, RawVecInner: Sync, Identifier: Sync, NodeRef<Owned, PackName, String, LeafOrInternal>: Sync, BoxRaw<(PackName, String)>: Sync, NodeRef<Owned, String, Vec<u8>, LeafOrInternal>: Sync, BoxRaw<(String, Vec<u8>)>: Sync, NodeRef<Owned, u64, Waiting, LeafOrInternal>: Sync, BoxRaw<(u64, Waiting)>: Sync, RawTable<(String, ())>: Sync, NodeRef<Owned, PackName, Vec<String>, LeafOrInternal>: Sync, BoxRaw<(PackName, Vec<String>)>: Sync, NodeRef<Owned, String, Fetch, LeafOrInternal>: Sync, BoxRaw<(String, Fetch)>: Sync, NodeRef<Owned, PackName, Vec<Release>, LeafOrInternal>: Sync, BoxRaw<(PackName, Vec<Release>)>: Sync, NodeRef<Owned, String, FrameFile, LeafOrInternal>: Sync, BoxRaw<(String, FrameFile)>: Sync,

§

impl Unpin for Resolution
where *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin, *const u8 is !null: Unpin, *const LeafNode<PackName, String> is !null: Unpin, Box<(PackName, String)>: Unpin, *const LeafNode<String, Vec<u8>> is !null: Unpin, Box<(String, Vec<u8>)>: Unpin, *const LeafNode<u64, Waiting> is !null: Unpin, Box<(u64, Waiting)>: Unpin, *const LeafNode<PackName, Vec<String>> is !null: Unpin, Box<(PackName, Vec<String>)>: Unpin, *const LeafNode<String, Fetch> is !null: Unpin, Box<(String, Fetch)>: Unpin, *const LeafNode<PackName, Vec<Release>> is !null: Unpin, Box<(PackName, Vec<Release>)>: Unpin, *const LeafNode<String, FrameFile> is !null: Unpin, Box<(String, FrameFile)>: Unpin,

§

impl UnsafeUnpin for Resolution

§

impl UnwindSafe for Resolution

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> ErasedDestructor for T
where T: 'static,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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