[][src]Struct tokio::prelude::stream::CatchUnwind

#[must_use = "streams do nothing unless polled"]
pub struct CatchUnwind<S> where
    S: Stream
{ /* fields omitted */ }

Stream for the catch_unwind combinator.

This is created by the Stream::catch_unwind method.

Trait Implementations

impl<S> Debug for CatchUnwind<S> where
    S: Debug + Stream
[src]

impl<S> Stream for CatchUnwind<S> where
    S: Stream + UnwindSafe
[src]

type Item = Result<<S as Stream>::Item, <S as Stream>::Error>

The type of item this stream will yield on success.

type Error = Box<dyn Any + 'static + Send>

The type of error this stream may generate.

Auto Trait Implementations

impl<S> RefUnwindSafe for CatchUnwind<S> where
    S: RefUnwindSafe

impl<S> Send for CatchUnwind<S> where
    S: Send

impl<S> Sync for CatchUnwind<S> where
    S: Sync

impl<S> Unpin for CatchUnwind<S> where
    S: Unpin

impl<S> UnwindSafe for CatchUnwind<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.