Skip to main content

bitrouter_runtime/
control.rs

1use crate::{error::Result, paths::RuntimePaths};
2
3#[derive(Debug, Clone)]
4pub struct ControlClient {
5    paths: RuntimePaths,
6}
7
8impl ControlClient {
9    pub fn new(paths: RuntimePaths) -> Self {
10        Self { paths }
11    }
12
13    pub fn paths(&self) -> &RuntimePaths {
14        &self.paths
15    }
16
17    pub async fn ping(&self) -> Result<()> {
18        Ok(())
19    }
20}