pub struct Context<St, C, E> { /* private fields */ }
Expand description
Stream for the context
combinator.
See the TryStreamExt::context
method for more details.
Trait Implementations
sourceimpl<St, C, E> Stream for Context<St, C, E>where
St: TryStream,
C: IntoError<E, Source = St::Error> + Clone,
E: Error + ErrorCompat,
impl<St, C, E> Stream for Context<St, C, E>where
St: TryStream,
C: IntoError<E, Source = St::Error> + Clone,
E: Error + ErrorCompat,
impl<'pin, St, C, E> Unpin for Context<St, C, E>where
__Context<'pin, St, C, E>: Unpin,
Auto Trait Implementations
impl<St, C, E> RefUnwindSafe for Context<St, C, E>where
C: RefUnwindSafe,
E: RefUnwindSafe,
St: RefUnwindSafe,
impl<St, C, E> Send for Context<St, C, E>where
C: Send,
E: Send,
St: Send,
impl<St, C, E> Sync for Context<St, C, E>where
C: Sync,
E: Sync,
St: Sync,
impl<St, C, E> UnwindSafe for Context<St, C, E>where
C: UnwindSafe,
E: UnwindSafe,
St: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Swhere
S: Stream<Item = Result<T, E>> + ?Sized,
impl<S, T, E> TryStream for Swhere
S: Stream<Item = Result<T, E>> + ?Sized,
sourceimpl<St> TryStreamExt for Stwhere
St: TryStream,
impl<St> TryStreamExt for Stwhere
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 moresourcefn 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 moresourcefn 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 moresourcefn 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