pub struct Runtime<ReactorT> { /* private fields */ }
Expand description
The owner of the reactor (I/O event queue) and executor (task management) data structures.
Implementations
sourceimpl<ReactorT> Runtime<ReactorT>where
ReactorT: Reactor,
impl<ReactorT> Runtime<ReactorT>where
ReactorT: Reactor,
pub fn nested_loop<FutureT, ResultT>(&self, future: FutureT) -> ResultTwhere
FutureT: Future<Output = ResultT>,
sourcepub fn is_awoken_for(&self, event_id: EventId) -> bool
pub fn is_awoken_for(&self, event_id: EventId) -> bool
Used by a leaf feature in poll() method to verify if it was the reason it was awoken.
Auto Trait Implementations
impl<ReactorT> !RefUnwindSafe for Runtime<ReactorT>
impl<ReactorT> !Send for Runtime<ReactorT>
impl<ReactorT> !Sync for Runtime<ReactorT>
impl<ReactorT> !Unpin for Runtime<ReactorT>
impl<ReactorT> !UnwindSafe for Runtime<ReactorT>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more