pub struct DirectExecutor;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.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectExecutor
impl Debug for DirectExecutor
Source§impl Default for DirectExecutor
impl Default for DirectExecutor
Source§fn default() -> DirectExecutor
fn default() -> DirectExecutor
Returns the “default value” for a type. Read more
Source§impl Executor for DirectExecutor
impl Executor for DirectExecutor
impl Copy for DirectExecutor
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