1 2 3 4 5 6 7 8 9 10 11 12
use crate::{self as rogue_runtime, RuntimeInfo, prelude::*}; rpc! { pub struct Runtimes; impl Runtimes { pub async fn list() -> Vec<RuntimeInfo> { let ctx = rogue_runtime::CONTEXT.get(); ctx.runtime.connected_runtimes().await } } }