pub struct ThreadDriverBackend { /* private fields */ }
Expand description
A backend for VmTaskDriverSource
based on
individual threads.
If no target VP is specified, this backend will spawn tasks and IO a default single-threaded IO driver. If a target VP is specified, the backend will spawn a separate thread and spawn tasks and IOs there.
Implementations§
Source§impl ThreadDriverBackend
impl ThreadDriverBackend
Sourcepub fn new(default_driver: DefaultDriver) -> Self
pub fn new(default_driver: DefaultDriver) -> Self
Returns a new backend, using default_driver
to back task drivers
that did not specify a target VP.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThreadDriverBackend
impl !RefUnwindSafe for ThreadDriverBackend
impl Send for ThreadDriverBackend
impl Sync for ThreadDriverBackend
impl Unpin for ThreadDriverBackend
impl !UnwindSafe for ThreadDriverBackend
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