pub struct DummyWorker;
Expand description
Dummy task spawner that returns error when invoked
Trait Implementations§
Source§impl Clone for DummyWorker
impl Clone for DummyWorker
Source§fn clone(&self) -> DummyWorker
fn clone(&self) -> DummyWorker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl FsTaskSpawner for DummyWorker
impl FsTaskSpawner for DummyWorker
Source§type SpawnError = Infallible
type SpawnError = Infallible
Error processing spawned task
Source§type FileReadFut = Ready<Result<Result<Bytes, Error>, <DummyWorker as FsTaskSpawner>::SpawnError>>
type FileReadFut = Ready<Result<Result<Bytes, Error>, <DummyWorker as FsTaskSpawner>::SpawnError>>
File read future spawned on IO runtime
Source§fn spawn_file_read<F: FnOnce() -> FileReadResult + Send + 'static>(
_: F,
) -> Self::FileReadFut
fn spawn_file_read<F: FnOnce() -> FileReadResult + Send + 'static>( _: F, ) -> Self::FileReadFut
Spawns file reading task task onto runtime.
impl Copy for DummyWorker
Auto Trait Implementations§
impl Freeze for DummyWorker
impl RefUnwindSafe for DummyWorker
impl Send for DummyWorker
impl Sync for DummyWorker
impl Unpin for DummyWorker
impl UnwindSafe for DummyWorker
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