pub trait Runtime: RuntimeDef {
    const MODE: RuntimeMode = RuntimeMode::Server;

    fn deploy<'a>(&mut self, ctx: &mut Context<Self>) -> OutputResponse<'a>;
    fn start<'a>(&mut self, ctx: &mut Context<Self>) -> OutputResponse<'a>;
    fn run_command<'a>(
        &mut self,
        command: RunProcess,
        mode: RuntimeMode,
        ctx: &mut Context<Self>
    ) -> ProcessIdResponse<'a>; fn stop<'a>(&mut self, _ctx: &mut Context<Self>) -> EmptyResponse<'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> { ... } fn join_network<'a>(
        &mut self,
        _network: CreateNetwork,
        _ctx: &mut Context<Self>
    ) -> EndpointResponse<'a> { ... } }
Expand description

Command handling interface for runtimes

Provided Associated Constants§

Required Methods§

Deploy and configure the runtime

Start the runtime

Start a runtime command

Provided Methods§

Stop the runtime

Stop runtime command execution

Output a market Offer template stub

Perform a self-test

Join a VPN network

Implementors§