[−][src]Struct snafu::futures::try_stream::WithContext
Stream for the with_context
combinator.
See the TryStreamExt::with_context
method for more details.
Trait Implementations
impl<St: Debug, F: Debug, E: Debug> Debug for WithContext<St, F, E>
[src]
impl<St, F, E> PinnedDrop for WithContext<St, F, E>
[src]
impl<St, F, C, E> Stream for WithContext<St, F, E> where
St: TryStream,
F: FnMut() -> C,
C: IntoError<E, Source = St::Error>,
E: Error + ErrorCompat,
[src]
St: TryStream,
F: FnMut() -> C,
C: IntoError<E, Source = St::Error>,
E: Error + ErrorCompat,
type Item = Result<St::Ok, E>
Values yielded by the stream.
fn poll_next(
self: Pin<&mut Self>,
ctx: &mut TaskContext
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
ctx: &mut TaskContext
) -> Poll<Option<Self::Item>>
fn size_hint(&self) -> (usize, Option<usize>)
[src]
impl<'pin, St, F, E> Unpin for WithContext<St, F, E> where
__WithContext<'pin, St, F, E>: Unpin,
[src]
__WithContext<'pin, St, F, E>: Unpin,
Auto Trait Implementations
impl<St, F, E> RefUnwindSafe for WithContext<St, F, E> where
E: RefUnwindSafe,
F: RefUnwindSafe,
St: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
St: RefUnwindSafe,
impl<St, F, E> Send for WithContext<St, F, E> where
E: Send,
F: Send,
St: Send,
E: Send,
F: Send,
St: Send,
impl<St, F, E> Sync for WithContext<St, F, E> where
E: Sync,
F: Sync,
St: Sync,
E: Sync,
F: Sync,
St: Sync,
impl<St, F, E> UnwindSafe for WithContext<St, F, E> where
E: UnwindSafe,
F: UnwindSafe,
St: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
St: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T, E> TryStream for S where
S: Stream<Item = Result<T, E>> + ?Sized,
[src]
S: Stream<Item = Result<T, E>> + ?Sized,
type Ok = T
The type of successful values yielded by this future
type Error = E
The type of failures yielded by this future
fn try_poll_next(
self: Pin<&mut S>,
cx: &mut Context
) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>
[src]
self: Pin<&mut S>,
cx: &mut Context
) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>
impl<St> TryStreamExt for St where
St: TryStream,
[src]
St: TryStream,
fn context<C, E>(Self, C) -> Context<St, C, E> where
C: IntoError<E, Source = <St as TryStream>::Error> + Clone,
E: Error + ErrorCompat,
[src]
C: IntoError<E, Source = <St as TryStream>::Error> + Clone,
E: Error + ErrorCompat,
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,
[src]
C: IntoError<E, Source = <St as TryStream>::Error>,
E: Error + ErrorCompat,
F: FnMut() -> C,