Skip to main content

AsyncDriver

Trait AsyncDriver 

Source
pub trait AsyncDriver {
    type Error;

    // Required method
    fn perform(
        &mut self,
        step: Step,
        deadline: Option<Instant>,
    ) -> impl Future<Output = Result<Progress, Self::Error>> + Send;

    // Provided method
    fn warmup_paths(&self) -> Vec<PathBuf> { ... }
}
Expand description

Async application operations.

Required Associated Types§

Source

type Error

Application error.

Required Methods§

Source

fn perform( &mut self, step: Step, deadline: Option<Instant>, ) -> impl Future<Output = Result<Progress, Self::Error>> + Send

Perform exactly the requested operation. Cancellation must preserve ownership.

Provided Methods§

Source

fn warmup_paths(&self) -> Vec<PathBuf>

Client shims to prefault after selection commits. Empty by default.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§