pub type StreamResult<T, E1, E2> = Result<T, StreamError<E1, E2>>;
Expand description
Convenient type alias for Result
whose error is StreamError
.
Aliased Type§
enum StreamResult<T, E1, E2> {
Ok(T),
Err(StreamError<E1, E2>),
}
Variants§
Trait Implementations§
Source§impl<T, E1, E2> StreamResultExt<T, E1, E2> for StreamResult<T, E1, E2>
impl<T, E1, E2> StreamResultExt<T, E1, E2> for StreamResult<T, E1, E2>
Source§fn map_source_err<E, F>(self, f: F) -> StreamResult<T, E, E2>
fn map_source_err<E, F>(self, f: F) -> StreamResult<T, E, E2>
Map the error if it is a
SourceError
Source§fn map_sink_err<E, F>(self, f: F) -> StreamResult<T, E1, E>
fn map_sink_err<E, F>(self, f: F) -> StreamResult<T, E1, E>
Map the error if it is a
SinkError