pub struct NativeExecutor(/* private fields */);Implementations§
Source§impl NativeExecutor
impl NativeExecutor
pub fn new() -> Self
pub fn with_priority(priority: Priority) -> Self
pub fn spawn_main<Fut>(&self, fut: Fut) -> AsyncTask<Fut::Output>
pub fn spawn<Fut>(&self, fut: Fut) -> AsyncTask<Fut::Output>
pub fn spawn_main_local<Fut>(
&self,
fut: Fut,
) -> <Self as LocalExecutor>::Task<Fut::Output>where
Fut: Future + 'static,
Trait Implementations§
Source§impl Debug for NativeExecutor
impl Debug for NativeExecutor
Source§impl Default for NativeExecutor
impl Default for NativeExecutor
Source§impl Executor for NativeExecutor
impl Executor for NativeExecutor
Source§impl LocalExecutor for NativeExecutor
§Panics
It panics if not on main thread.
impl LocalExecutor for NativeExecutor
§Panics
It panics if not on main thread.
Auto Trait Implementations§
impl Freeze for NativeExecutor
impl RefUnwindSafe for NativeExecutor
impl Send for NativeExecutor
impl Sync for NativeExecutor
impl Unpin for NativeExecutor
impl UnwindSafe for NativeExecutor
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