[][src]Struct futures_core::stream::StreamObj

pub struct StreamObj<'a, T>(_);

A custom trait object for polling streams, roughly akin to Box<dyn Stream<Item = T> + Send + 'a>.

This custom trait object was introduced for two reasons:

Methods

impl<'a, T> StreamObj<'a, T>
[src]

Create a StreamObj from a custom trait object representation.

Trait Implementations

impl<'a, T> From<StreamObj<'a, T>> for LocalStreamObj<'a, T>
[src]

Performs the conversion.

impl<'a, T> Unpin for StreamObj<'a, T>
[src]

impl<'a, T> Send for StreamObj<'a, T>
[src]

impl<'a, T> Debug for StreamObj<'a, T>
[src]

Formats the value using the given formatter. Read more

impl<'a, T> Stream for StreamObj<'a, T>
[src]

Values yielded by the stream.

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<'a, F: Stream<Item = ()> + Send + 'a> From<PinBox<F>> for StreamObj<'a, ()>
[src]

Performs the conversion.

impl<'a, F: Stream<Item = ()> + Send + 'a> From<Box<F>> for StreamObj<'a, ()>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a, T> !Sync for StreamObj<'a, T>

Blanket Implementations

impl<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>>, 
[src]

The type of successful values yielded by this future

The type of failures yielded by this future

Poll this TryStream as if it were a Stream. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Performs the conversion.

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

Important traits for &'a mut I

Immutably borrows from an owned value. Read more

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

Important traits for &'a mut I

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more