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>

source

pub fn new_with(reactor: Re) -> AsyncResult<Arc<Self>>

source

pub fn new() -> AsyncResult<Arc<Self>>

source

fn wake(&self)

source

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>

source§

fn as_raw_descriptors(&self) -> Vec<RawDescriptor>

Returns the underlying raw descriptors. Read more
source§

impl<Re: Reactor> Drop for RawExecutor<Re>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<Re: Reactor> WeakWake for RawExecutor<Re>

source§

fn wake_by_ref(weak_self: &Weak<Self>)

source§

fn wake(weak_self: Weak<Self>)

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.