Struct snafu::futures::try_stream::WhateverContext [−][src]
pub struct WhateverContext<St, S, E> { /* fields omitted */ }
Expand description
Stream for the
whatever_context
combinator.
See the TryStreamExt::whatever_context
method for more
details.
Trait Implementations
impl<St, S, E> Stream for WhateverContext<St, S, E> where
St: TryStream,
S: Into<String> + Clone,
E: FromString,
St::Error: Into<E::Source>,
impl<St, S, E> Stream for WhateverContext<St, S, E> where
St: TryStream,
S: Into<String> + Clone,
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, S, E> Unpin for WhateverContext<St, S, E> where
__WhateverContext<'pin, St, S, E>: Unpin,
Auto Trait Implementations
impl<St, S, E> RefUnwindSafe for WhateverContext<St, S, E> where
E: RefUnwindSafe,
S: RefUnwindSafe,
St: RefUnwindSafe,
impl<St, S, E> Send for WhateverContext<St, S, E> where
E: Send,
S: Send,
St: Send,
impl<St, S, E> Sync for WhateverContext<St, S, E> where
E: Sync,
S: Sync,
St: Sync,
impl<St, S, E> UnwindSafe for WhateverContext<St, S, E> where
E: UnwindSafe,
S: 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