Skip to main content

RpcStream

Type Alias RpcStream 

Source
pub type RpcStream<O> = Receiver<Result<O, RpcClientError>>;
Expand description

Stable alias for the receiver shape that [RpcClient::call_streaming] returns. Exists so macro-generated code (include_client_schema! for transport rpc schemas) has a single name to bind without re-spelling the tokio/error-type plumbing on every method, and so downstream users have a typedef they can store in struct fields, function returns, etc. without leaking the implementation detail.

Aliased Typeยง

pub struct RpcStream<O> { /* private fields */ }