Struct cros_async::common_executor::RawExecutor
source · 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§fn as_raw_descriptors(&self) -> Vec<RawDescriptor>
fn as_raw_descriptors(&self) -> Vec<RawDescriptor>
Returns the underlying raw descriptors. Read more
source§impl<Re: Reactor> Drop for RawExecutor<Re>
impl<Re: Reactor> Drop for RawExecutor<Re>
Auto Trait Implementations§
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