pub trait RangeService {
// Required method
async fn range(&self, n: u32) -> Streaming<u32>;
}Expand description
Service with server-streaming RPC for testing.
Uses the new Streaming<T> return type pattern.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.