pub struct ManualExecutor { /* private fields */ }
Implementations§
Source§impl ManualExecutor
impl ManualExecutor
pub fn new() -> Arc<Self>
pub fn task_count(&self) -> usize
pub fn spawn_wake( self: &Arc<Self>, task: impl Future<Output = ()> + Send + 'static, ) -> Key
pub fn spawn(&self, task: impl Future<Output = ()> + Send + 'static) -> Key
pub fn wake(self: &Arc<Self>, key: Key)
pub fn wake_all(self: &Arc<Self>)
Auto Trait Implementations§
impl !Freeze for ManualExecutor
impl RefUnwindSafe for ManualExecutor
impl Send for ManualExecutor
impl Sync for ManualExecutor
impl Unpin for ManualExecutor
impl UnwindSafe for ManualExecutor
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