Skip to main content

throw_error

Function throw_error 

Source
pub fn throw_error<T, E: Clone>(error: E) -> impl Stream<Item = Result<T, E>>
Expand description

Creates a stream that immediately emits an error.