Struct ya_runtime_sdk::RunCommandContext
source · 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)
Trait Implementations§
source§impl Clone for RunCommandContext
impl Clone for RunCommandContext
source§fn clone(&self) -> RunCommandContext
fn clone(&self) -> RunCommandContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more