pub struct InterpreterTask<'a> { /* private fields */ }Expand description
Drives one interpreter task on the scheduler.
Implementations§
Trait Implementations§
Source§impl<'a> Task<'a> for InterpreterTask<'a>
impl<'a> Task<'a> for InterpreterTask<'a>
Source§fn poll(&mut self, ctx: &mut TaskCtx) -> TaskStep<'a>
fn poll(&mut self, ctx: &mut TaskCtx) -> TaskStep<'a>
Advance the task until its next scheduling point.
§fn priority(&self) -> u8
fn priority(&self) -> u8
Scheduling priority — higher runs first under [
crate::SchedulePolicy::Priority].
Defaults to 0 (all tasks equal).§fn take_output(&mut self) -> Vec<String>
fn take_output(&mut self) -> Vec<String>
Output lines the task produced during the just-finished
poll slice, in
order. The work-stealing driver collects these per slice and flushes them in
the deterministic pick-order apply, so concurrent output matches the
cooperative interleaving byte-for-byte. Cooperative tasks write straight to
their sink and leave this empty (the default).Auto Trait Implementations§
impl<'a> Freeze for InterpreterTask<'a>
impl<'a> !RefUnwindSafe for InterpreterTask<'a>
impl<'a> !Send for InterpreterTask<'a>
impl<'a> !Sync for InterpreterTask<'a>
impl<'a> Unpin for InterpreterTask<'a>
impl<'a> UnsafeUnpin for InterpreterTask<'a>
impl<'a> !UnwindSafe for InterpreterTask<'a>
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.