pub struct DefaultExecutor;
Available on crate feature
tokio
only.Expand description
The default Tokio-based executor implementation.
This executor can spawn both Send and non-Send futures using Tokio’s
spawn
and spawn_local
functions respectively.
Implementations§
Source§impl DefaultExecutor
impl DefaultExecutor
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new DefaultExecutor
.
Trait Implementations§
Source§impl Clone for DefaultExecutor
impl Clone for DefaultExecutor
Source§fn clone(&self) -> DefaultExecutor
fn clone(&self) -> DefaultExecutor
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 DefaultExecutor
impl Debug for DefaultExecutor
Source§impl Default for DefaultExecutor
impl Default for DefaultExecutor
Source§impl Executor for DefaultExecutor
impl Executor for DefaultExecutor
Source§impl LocalExecutor for DefaultExecutor
impl LocalExecutor for DefaultExecutor
impl Copy for DefaultExecutor
Auto Trait Implementations§
impl Freeze for DefaultExecutor
impl RefUnwindSafe for DefaultExecutor
impl Send for DefaultExecutor
impl Sync for DefaultExecutor
impl Unpin for DefaultExecutor
impl UnwindSafe for DefaultExecutor
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