[−][src]Trait failure_ext::StreamFailureExt
"Context" support for streams where the error is an implementation of std::error::Error.
Required methods
pub fn context<D>(self, context: D) -> ContextStream<Self, D> where
D: Display + Clone + Send + Sync + 'static,
[src]
D: Display + Clone + Send + Sync + 'static,
Add context to the error returned by this stream
pub fn with_context<D, F>(self, f: F) -> WithContextStream<Self, F> where
D: Display + Clone + Send + Sync + 'static,
F: FnMut() -> D,
[src]
D: Display + Clone + Send + Sync + 'static,
F: FnMut() -> D,
Add context created by provided function to the error returned by this stream
Implementors
impl<S> StreamFailureExt for S where
S: Stream + Sized,
S::Error: StdError + Send + Sync + 'static,
[src]
S: Stream + Sized,
S::Error: StdError + Send + Sync + 'static,