Skip to main content

Resolver

Trait Resolver 

Source
pub trait Resolver: Sized {
    type Backend: Poll;
    type Fault: Copy;

    // Required methods
    fn backend(&mut self) -> &mut Self::Backend;
    fn retire_one(&mut self) -> Step;
    fn has_pending(&self) -> bool;
    fn has_flights(&self) -> bool;
    fn has_inflight(&self) -> bool;

    // Provided method
    fn retire(&mut self) { ... }
}
Expand description

A host’s exact driver root retains all completion and retirement authority.

Required Associated Types§

Required Methods§

Source

fn backend(&mut self) -> &mut Self::Backend

Source

fn retire_one(&mut self) -> Step

Source

fn has_pending(&self) -> bool

Source

fn has_flights(&self) -> bool

Source

fn has_inflight(&self) -> bool

Provided Methods§

Source

fn retire(&mut self)

Retires every currently admissible descriptor, stopping at backpressure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§