pub struct SingleDriverBackend<T>(/* private fields */);Expand description
A backend that spawns all tasks and IO on a single driver.
Implementations§
Trait Implementations§
Source§impl<T: Driver + Spawn + Clone> BuildVmTaskDriver for SingleDriverBackend<T>
impl<T: Driver + Spawn + Clone> BuildVmTaskDriver for SingleDriverBackend<T>
Source§type Driver = SingleDriver<T>
type Driver = SingleDriver<T>
The associated driver type.
Source§type CurrentDriver = SingleDriver<T>
type CurrentDriver = SingleDriver<T>
The driver type for
build_current.Source§fn build(
&self,
_name: String,
_target_vp: Option<u32>,
_run_on_target: bool,
) -> Self::Driver
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.
Source§fn build_current(&self) -> Self::CurrentDriver
fn build_current(&self) -> Self::CurrentDriver
Builds a driver that dispatches to the current thread’s executor.
Auto Trait Implementations§
impl<T> Freeze for SingleDriverBackend<T>where
T: Freeze,
impl<T> RefUnwindSafe for SingleDriverBackend<T>where
T: RefUnwindSafe,
impl<T> Send for SingleDriverBackend<T>where
T: Send,
impl<T> Sync for SingleDriverBackend<T>where
T: Sync,
impl<T> Unpin for SingleDriverBackend<T>where
T: Unpin,
impl<T> UnsafeUnpin for SingleDriverBackend<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SingleDriverBackend<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more