pub struct RawExecutor<Re: Reactor + 'static> {
pub reactor: Re,
queue: RunnableQueue,
blocking_pool: BlockingPool,
state: AtomicI32,
detached_tasks: Mutex<DetachedTasks>,
}Fields§
§reactor: Re§queue: RunnableQueue§blocking_pool: BlockingPool§state: AtomicI32§detached_tasks: Mutex<DetachedTasks>Implementations§
Source§impl<Re: Reactor> RawExecutor<Re>
impl<Re: Reactor> RawExecutor<Re>
pub fn new_with(reactor: Re) -> AsyncResult<Arc<Self>>
pub fn new() -> AsyncResult<Arc<Self>>
fn wake(&self)
fn run_internal<F: Future>( &self, cx: &mut Context<'_>, done: F, ) -> AsyncResult<F::Output>
Trait Implementations§
Source§impl<Re: Reactor + AsRawDescriptors> AsRawDescriptors for RawExecutor<Re>
impl<Re: Reactor + AsRawDescriptors> AsRawDescriptors for RawExecutor<Re>
Source§impl<Re: Reactor> Drop for RawExecutor<Re>
impl<Re: Reactor> Drop for RawExecutor<Re>
Auto Trait Implementations§
impl<Re> !Freeze for RawExecutor<Re>
impl<Re> RefUnwindSafe for RawExecutor<Re>where
Re: RefUnwindSafe,
impl<Re> Send for RawExecutor<Re>
impl<Re> Sync for RawExecutor<Re>
impl<Re> Unpin for RawExecutor<Re>where
Re: Unpin,
impl<Re> UnwindSafe for RawExecutor<Re>where
Re: UnwindSafe,
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