RangeService

Trait RangeService 

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

Source

async fn range(&self, n: u32) -> Streaming<u32>

Stream numbers from 0 to n-1.

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.

Implementors§