Skip to main content

error_stream

Function error_stream 

Source
pub fn error_stream<'a, E>(error: ClientError) -> EventStream<'a, E>
where E: 'a,
Expand description

A typed stream that yields exactly one error and then ends.

What a generated client method returns when it cannot even build the request — a parameter that would not serialize. Keeping the signature a stream (rather than Result<EventStream, _>) means the call site handles one error channel, not two.