Struct snafu::futures::try_stream::WithWhateverContext
source · [−]pub struct WithWhateverContext<St, F, E> { /* private fields */ }
Expand description
Stream for the
with_whatever_context
combinator.
See the TryStreamExt::with_whatever_context
method for more
details.
Trait Implementations
sourceimpl<St, F, S, E> Stream for WithWhateverContext<St, F, E> where
St: TryStream,
F: FnMut(&mut St::Error) -> S,
S: Into<String>,
E: FromString,
St::Error: Into<E::Source>,
impl<St, F, S, E> Stream for WithWhateverContext<St, F, E> where
St: TryStream,
F: FnMut(&mut St::Error) -> S,
S: Into<String>,
E: FromString,
St::Error: Into<E::Source>,
impl<'pin, St, F, E> Unpin for WithWhateverContext<St, F, E> where
__WithWhateverContext<'pin, St, F, E>: Unpin,
Auto Trait Implementations
impl<St, F, E> RefUnwindSafe for WithWhateverContext<St, F, E> where
E: RefUnwindSafe,
F: RefUnwindSafe,
St: RefUnwindSafe,
impl<St, F, E> Send for WithWhateverContext<St, F, E> where
E: Send,
F: Send,
St: Send,
impl<St, F, E> Sync for WithWhateverContext<St, F, E> where
E: Sync,
F: Sync,
St: Sync,
impl<St, F, E> UnwindSafe for WithWhateverContext<St, F, E> where
E: UnwindSafe,
F: UnwindSafe,
St: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T, E> TryStream for S where
S: Stream<Item = Result<T, E>> + ?Sized,
impl<S, T, E> TryStream for S where
S: Stream<Item = Result<T, E>> + ?Sized,
sourceimpl<St> TryStreamExt for St where
St: TryStream,
impl<St> TryStreamExt for St where
St: TryStream,
sourcefn context<C, E>(self, context: C) -> Context<St, C, E> where
C: IntoError<E, Source = <St as TryStream>::Error> + Clone,
E: Error + ErrorCompat,
fn context<C, E>(self, context: C) -> Context<St, C, E> where
C: IntoError<E, Source = <St as TryStream>::Error> + Clone,
E: Error + ErrorCompat,
Extend a [TryStream
]’s error with additional context-sensitive
information. Read more
sourcefn with_context<F, C, E>(self, context: F) -> WithContext<St, F, E> where
F: FnMut(&mut <St as TryStream>::Error) -> C,
C: IntoError<E, Source = <St as TryStream>::Error>,
E: Error + ErrorCompat,
fn with_context<F, C, E>(self, context: F) -> WithContext<St, F, E> where
F: FnMut(&mut <St as TryStream>::Error) -> C,
C: IntoError<E, Source = <St as TryStream>::Error>,
E: Error + ErrorCompat,
Extend a [TryStream
]’s error with lazily-generated
context-sensitive information. Read more
sourcefn whatever_context<S, E>(self, context: S) -> WhateverContext<St, S, E> where
S: Into<String>,
E: FromString,
fn whatever_context<S, E>(self, context: S) -> WhateverContext<St, S, E> where
S: Into<String>,
E: FromString,
Extend a [TryStream
]’s error with information from a string. Read more
sourcefn with_whatever_context<F, S, E>(
self,
context: F
) -> WithWhateverContext<St, F, E> where
F: FnMut(&mut <St as TryStream>::Error) -> S,
S: Into<String>,
E: FromString,
fn with_whatever_context<F, S, E>(
self,
context: F
) -> WithWhateverContext<St, F, E> where
F: FnMut(&mut <St as TryStream>::Error) -> S,
S: Into<String>,
E: FromString,
Extend a [TryStream
]’s error with information from a
lazily-generated string. Read more