pub struct RunCommandContext { /* private fields */ }
Expand description
Command execution handler
Implementations§
Source§impl RunCommandContext
impl RunCommandContext
Sourcepub fn stdout(&mut self, output: impl IntoVec<u8>) -> BoxFuture<'_, ()>
pub fn stdout(&mut self, output: impl IntoVec<u8>) -> BoxFuture<'_, ()>
Emit a RUN command output event (stdout)
Sourcepub fn stderr(&mut self, output: impl IntoVec<u8>) -> BoxFuture<'_, ()>
pub fn stderr(&mut self, output: impl IntoVec<u8>) -> BoxFuture<'_, ()>
Emit a RUN command output event (stderr)
Sourcepub fn state(
&mut self,
name: String,
value: Value,
) -> BoxFuture<'_, Result<(), Error>>
pub fn state( &mut self, name: String, value: Value, ) -> BoxFuture<'_, Result<(), Error>>
Emit a STATE event
Sourcepub fn control(&self) -> RuntimeControl
pub fn control(&self) -> RuntimeControl
Return runtime control object
Trait Implementations§
Source§impl Clone for RunCommandContext
impl Clone for RunCommandContext
Source§fn clone(&self) -> RunCommandContext
fn clone(&self) -> RunCommandContext
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RunCommandContext
impl !RefUnwindSafe for RunCommandContext
impl !Send for RunCommandContext
impl !Sync for RunCommandContext
impl Unpin for RunCommandContext
impl !UnwindSafe for RunCommandContext
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