pub struct Reactor<'l, C: Clock> { /* private fields */ }Expand description
The reactor of one executor: registrations made by the futures it hands out.
Implementations§
Source§impl<'l, C: Clock> Reactor<'l, C>
impl<'l, C: Clock> Reactor<'l, C>
Sourcepub fn ready(
&self,
desc: MemoryDescriptor<'l>,
until: Option<MonoNs>,
) -> Ready<'_, 'l, C> ⓘ
pub fn ready( &self, desc: MemoryDescriptor<'l>, until: Option<MonoNs>, ) -> Ready<'_, 'l, C> ⓘ
A future that resolves true once desc completes, or false once the clock reads
until first (no bound with None).
Sourcepub fn pending(&self) -> (usize, usize)
pub fn pending(&self) -> (usize, usize)
Registered descriptors and timers (for a host’s counters and tests).
Trait Implementations§
Auto Trait Implementations§
impl<'l, C> !Freeze for Reactor<'l, C>
impl<'l, C> !RefUnwindSafe for Reactor<'l, C>
impl<'l, C> !Sync for Reactor<'l, C>
impl<'l, C> Forget for Reactor<'l, C>
impl<'l, C> Move for Reactor<'l, C>
impl<'l, C> Send for Reactor<'l, C>where
C: Send,
impl<'l, C> Unpin for Reactor<'l, C>where
C: Unpin,
impl<'l, C> UnsafeUnpin for Reactor<'l, C>where
C: UnsafeUnpin,
impl<'l, C> UnwindSafe for Reactor<'l, C>where
C: 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