Trait ya_runtime_sdk::Runtime [−][src]
pub trait Runtime: RuntimeDef + Default { const MODE: RuntimeMode; fn deploy<'a>(&mut self, ctx: &mut Context<Self>) -> OutputResponse<'a>; fn start<'a>(&mut self, ctx: &mut Context<Self>) -> OutputResponse<'a>; fn stop<'a>(&mut self, ctx: &mut Context<Self>) -> EmptyResponse<'a>; fn run_command<'a>(
&mut self,
command: RunProcess,
mode: RuntimeMode,
ctx: &mut Context<Self>
) -> ProcessIdResponse<'a>; fn kill_command<'a>(
&mut self,
_kill: KillProcess,
_ctx: &mut Context<Self>
) -> EmptyResponse<'a> { ... } fn offer<'a>(&mut self, _ctx: &mut Context<Self>) -> OutputResponse<'a> { ... } fn test<'a>(&mut self, _ctx: &mut Context<Self>) -> EmptyResponse<'a> { ... } }
Expand description
Command handling interface for runtimes
Associated Constants
const MODE: RuntimeMode[src]Required methods
fn deploy<'a>(&mut self, ctx: &mut Context<Self>) -> OutputResponse<'a>[src]
fn deploy<'a>(&mut self, ctx: &mut Context<Self>) -> OutputResponse<'a>[src]Deploy and configure the runtime
fn start<'a>(&mut self, ctx: &mut Context<Self>) -> OutputResponse<'a>[src]
fn start<'a>(&mut self, ctx: &mut Context<Self>) -> OutputResponse<'a>[src]Start the runtime
fn stop<'a>(&mut self, ctx: &mut Context<Self>) -> EmptyResponse<'a>[src]
fn stop<'a>(&mut self, ctx: &mut Context<Self>) -> EmptyResponse<'a>[src]Stop the runtime
fn run_command<'a>(
&mut self,
command: RunProcess,
mode: RuntimeMode,
ctx: &mut Context<Self>
) -> ProcessIdResponse<'a>[src]
fn run_command<'a>(
&mut self,
command: RunProcess,
mode: RuntimeMode,
ctx: &mut Context<Self>
) -> ProcessIdResponse<'a>[src]Start a runtime command
Provided methods
fn kill_command<'a>(
&mut self,
_kill: KillProcess,
_ctx: &mut Context<Self>
) -> EmptyResponse<'a>[src]
fn kill_command<'a>(
&mut self,
_kill: KillProcess,
_ctx: &mut Context<Self>
) -> EmptyResponse<'a>[src]Stop runtime command execution
fn offer<'a>(&mut self, _ctx: &mut Context<Self>) -> OutputResponse<'a>[src]
fn offer<'a>(&mut self, _ctx: &mut Context<Self>) -> OutputResponse<'a>[src]Output a market Offer template stub
fn test<'a>(&mut self, _ctx: &mut Context<Self>) -> EmptyResponse<'a>[src]
fn test<'a>(&mut self, _ctx: &mut Context<Self>) -> EmptyResponse<'a>[src]Perform a self-test