pub struct DirectExecutor { /* private fields */ }Expand description
Executes tasks immediately on the caller thread.
This executor is useful for deterministic tests and simple composition where task execution should happen in the same call stack.
Implementations§
Source§impl DirectExecutor
impl DirectExecutor
Trait Implementations§
Source§impl Clone for DirectExecutor
impl Clone for DirectExecutor
Source§fn clone(&self) -> DirectExecutor
fn clone(&self) -> DirectExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DirectExecutor
impl Default for DirectExecutor
Source§impl Executor for DirectExecutor
impl Executor for DirectExecutor
Source§fn call<C, R, E>(&self, task: C) -> Result<TrackedTask<R, E>, SubmissionError>
fn call<C, R, E>(&self, task: C) -> Result<TrackedTask<R, E>, SubmissionError>
Auto Trait Implementations§
impl Freeze for DirectExecutor
impl !RefUnwindSafe for DirectExecutor
impl Send for DirectExecutor
impl Sync for DirectExecutor
impl Unpin for DirectExecutor
impl UnsafeUnpin for DirectExecutor
impl !UnwindSafe for DirectExecutor
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