pub trait FunctionStub {
// Required method
fn service_name(&self) -> &str;
}Expand description
Stub trait: every generated client-side proxy implements it.
The stub encapsulates the request/reply mechanism behind a
type-safe method signature (e.g. fn add(a: i32, b: i32) -> i32).
Required Methods§
Sourcefn service_name(&self) -> &str
fn service_name(&self) -> &str
Service name from the IDL interface name.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".