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

Required methods

Deploy and configure the runtime

Start the runtime

Stop the runtime

Start a runtime command

Provided methods

Stop runtime command execution

Output a market Offer template stub

Perform a self-test

Implementors