[−][src]Trait service::World
This is the service definition. It looks a lot like a trait definition. It defines one RPC, hello, which takes one arg, name, and returns a String.
Associated Types
Loading content...Required methods
pub fn hello(self, context: Context, name: String) -> Self::HelloFut
[src]
Returns a greeting for name.
Provided methods
pub fn serve(self) -> ServeWorld<Self>
[src]
Returns a serving function to use with tarpc::server::Channel::respond_with.