Trait vmcore::vm_task::BuildVmTaskDriver

source ·
pub trait BuildVmTaskDriver: Send + Sync {
    type Driver: TargetedDriver;

    // Required method
    fn build(
        &self,
        name: String,
        target_vp: Option<u32>,
        run_on_target: bool,
    ) -> Self::Driver;
}
Expand description

Trait implemented by backends for VmTaskDriverSource.

Required Associated Types§

source

type Driver: TargetedDriver

The associated driver type.

Required Methods§

source

fn build( &self, name: String, target_vp: Option<u32>, run_on_target: bool, ) -> Self::Driver

Builds a new driver that can drive IO and spawn tasks.

Implementors§