Skip to main content

FunctionStub

Trait FunctionStub 

Source
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§

Source

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".

Implementors§