1 2 3 4 5 6 7 8
use anyhow::Result; use netxclient::prelude::*; #[build] pub trait IServer: Sync + Send { #[tag(1000)] async fn add(&self, a: i32, b: i32) -> Result<i32>; }