eyros 4.6.2

multi-dimensional interval database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::Debugger;
use async_std::channel::Sender;

pub struct JsDebug {
  rpc: Sender<String>,
}

impl JsDebug {
  pub fn new(rpc: Sender<String>) -> Self {
    Self { rpc }
  }
}

impl Debugger for JsDebug {
  fn send(&mut self, msg: &str) -> () {
    self.rpc.try_send(msg.to_string()).unwrap();
  }
}