Skip to main content

StreamProvider

Type Alias StreamProvider 

Source
pub type StreamProvider<T> = Receiver<Result<T, StreamPrologueError>>;
Expand description

Resolves once the worker’s response stream is established, or with a StreamPrologueError carrying both the failure’s display text and, when the worker sent one, its crate::error::ErrorType, so the requesting side can classify a pre-stream failure without parsing the message.

Aliased Type§

pub struct StreamProvider<T> { /* private fields */ }