Struct sp_core::testing::TaskExecutor
source · pub struct TaskExecutor(/* private fields */);
Expand description
A task executor that can be used in tests.
Internally this just wraps a ThreadPool
with a pool size of 8
. This
should ensure that we have enough threads in tests for spawning blocking futures.
Implementations§
source§impl TaskExecutor
impl TaskExecutor
Trait Implementations§
source§impl Clone for TaskExecutor
impl Clone for TaskExecutor
source§fn clone(&self) -> TaskExecutor
fn clone(&self) -> TaskExecutor
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 Default for TaskExecutor
impl Default for TaskExecutor
source§impl SpawnEssentialNamed for TaskExecutor
impl SpawnEssentialNamed for TaskExecutor
source§impl SpawnNamed for TaskExecutor
impl SpawnNamed for TaskExecutor
Auto Trait Implementations§
impl RefUnwindSafe for TaskExecutor
impl Send for TaskExecutor
impl Sync for TaskExecutor
impl Unpin for TaskExecutor
impl UnwindSafe for TaskExecutor
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.