Struct snafu::futures::try_stream::WithWhateverContext [−][src]
pub struct WithWhateverContext<St, F, E> { /* fields omitted */ }
Expand description
Stream for the
with_whatever_context
combinator.
See the TryStreamExt::with_whatever_context
method for more
details.
Trait Implementations
impl<St, F, S, E> Stream for WithWhateverContext<St, F, E> where
St: TryStream,
F: FnMut(&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(&St::Error) -> S,
S: Into<String>,
E: FromString,
St::Error: Into<E::Source>,
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted. Read more
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
Mutably borrows from an owned value. Read more
Extend a [TryStream
]’s error with additional context-sensitive
information. Read more
pub fn with_context<F, C, E>(Self, F) -> WithContext<St, F, E> where
C: IntoError<E, Source = <St as TryStream>::Error>,
E: Error + ErrorCompat,
F: FnMut() -> C,
pub fn with_context<F, C, E>(Self, F) -> WithContext<St, F, E> where
C: IntoError<E, Source = <St as TryStream>::Error>,
E: Error + ErrorCompat,
F: FnMut() -> C,
Extend a [TryStream
]’s error with lazily-generated
context-sensitive information. Read more
pub fn whatever_context<S, E>(Self, S) -> WhateverContext<St, S, E> where
E: FromString,
S: Into<String>,
pub fn whatever_context<S, E>(Self, S) -> WhateverContext<St, S, E> where
E: FromString,
S: Into<String>,
Extend a [TryStream
]’s error with information from a string. Read more
pub fn with_whatever_context<F, S, E>(Self, F) -> WithWhateverContext<St, F, E> where
E: FromString,
F: FnMut(&<St as TryStream>::Error) -> S,
S: Into<String>,
pub fn with_whatever_context<F, S, E>(Self, F) -> WithWhateverContext<St, F, E> where
E: FromString,
F: FnMut(&<St as TryStream>::Error) -> S,
S: Into<String>,
Extend a [TryStream
]’s error with information from a
lazily-generated string. Read more