1 2 3 4 5 6 7 8 9 10 11 12 13
#[rcall::protocol] #[allow(dead_code)] pub trait EchoClient { fn echo_back(&mut self, msg: String); } #[rcall::protocol] #[allow(dead_code)] pub trait EchoServer { fn echo(&mut self, msg: String); }