pub(crate) struct ExecutionControl<'context, S>where
S: ExecutionCommandSource,{
context: &'context mut CommandExecutionContext<S>,
frame: Frame,
}Expand description
Queue and frame operations available only to custom internal executors.
Fields§
§context: &'context mut CommandExecutionContext<S>§frame: FrameImplementations§
Source§impl<'context, S> ExecutionControl<'context, S>where
S: ExecutionCommandSource,
impl<'context, S> ExecutionControl<'context, S>where
S: ExecutionCommandSource,
pub(crate) const fn new( context: &'context mut CommandExecutionContext<S>, frame: Frame, ) -> Self
pub(crate) const fn current_frame(&self) -> &Frame
pub(crate) fn queue_next(&mut self, action: impl EntryAction<S>)
Sourcepub(crate) fn suspend(&mut self, suspension: impl CommandSuspension<S>)
pub(crate) fn suspend(&mut self, suspension: impl CommandSuspension<S>)
Suspends at this queue position until the supplied work produces a resume action.
pub(crate) fn queue_contexts( &mut self, chain: ContextChain<S, SteelCommandRuntime>, original_source: Arc<S>, sources: Vec<Arc<S>>, modifiers: ChainModifiers, )
pub(crate) fn discard_frame(&mut self)
pub(crate) fn queue_fallthrough(&mut self)
pub(crate) fn return_success(&mut self, result: i32)
pub(crate) fn return_failure(&mut self)
Auto Trait Implementations§
impl<'context, S> !RefUnwindSafe for ExecutionControl<'context, S>
impl<'context, S> !Sync for ExecutionControl<'context, S>
impl<'context, S> !UnwindSafe for ExecutionControl<'context, S>
impl<'context, S> Freeze for ExecutionControl<'context, S>
impl<'context, S> Send for ExecutionControl<'context, S>
impl<'context, S> Unpin for ExecutionControl<'context, S>
impl<'context, S> UnsafeUnpin for ExecutionControl<'context, S>
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>