pub struct TokioWorker;
Expand description
Tokio worker to spawn blocking FS related tasks
Requires tokio
feature
Trait Implementations§
Source§impl Clone for TokioWorker
impl Clone for TokioWorker
Source§fn clone(&self) -> TokioWorker
fn clone(&self) -> TokioWorker
Returns a copy 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 TokioWorker
impl FsTaskSpawner for TokioWorker
Source§type SpawnError = JoinError
type SpawnError = JoinError
Error processing spawned task
Source§type FileReadFut = JoinHandle<Result<Bytes, Error>>
type FileReadFut = JoinHandle<Result<Bytes, Error>>
File read future spawned on IO runtime
Source§fn spawn_file_read<F: FnOnce() -> FileReadResult + Send + 'static>(
fut: F,
) -> Self::FileReadFut
fn spawn_file_read<F: FnOnce() -> FileReadResult + Send + 'static>( fut: F, ) -> Self::FileReadFut
Spawns file reading task task onto runtime.
impl Copy for TokioWorker
Auto Trait Implementations§
impl Freeze for TokioWorker
impl RefUnwindSafe for TokioWorker
impl Send for TokioWorker
impl Sync for TokioWorker
impl Unpin for TokioWorker
impl UnwindSafe for TokioWorker
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