#![cfg(not(target_arch = "wasm32"))]
use std::time::Duration;
use chrono::NaiveTime;
use dnet::rpc::{api, no_ack};
#[api]
pub trait Api {
#[no_ack]
async fn hello_world(&self);
async fn add_numbers(&self, a: i32, b: i32) -> i32;
async fn concatenate_strings(&self, a: String, b: String) -> String;
async fn stream_time(&self, interval: Duration) -> impl Stream<Item = NaiveTime>;
}