Struct snafu::futures::try_stream::Context [−][src]
pub struct Context<St, C, E> { /* fields omitted */ }
Expand description
Stream for the context
combinator.
See the TryStreamExt::context
method for more details.
Trait Implementations
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
Auto Trait Implementations
impl<St, C, E> RefUnwindSafe for Context<St, C, E> where
C: RefUnwindSafe,
E: RefUnwindSafe,
St: RefUnwindSafe,
impl<St, C, E> UnwindSafe for Context<St, C, E> where
C: UnwindSafe,
E: 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
F: FnMut(&mut <St as TryStream>::Error) -> C,
C: IntoError<E, Source = <St as TryStream>::Error>,
E: Error + ErrorCompat,
pub fn with_context<F, C, E>(Self, 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
pub fn whatever_context<S, E>(Self, S) -> WhateverContext<St, S, E> where
S: Into<String>,
E: FromString,
pub fn whatever_context<S, E>(Self, S) -> WhateverContext<St, S, E> where
S: Into<String>,
E: FromString,
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
F: FnMut(&mut <St as TryStream>::Error) -> S,
S: Into<String>,
E: FromString,
pub fn with_whatever_context<F, S, E>(Self, 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