Skip to main content

PullStream

Trait PullStream 

Source
pub trait PullStream<E>:
    TryStream<Ok = Bytes, Error = (E, Option<Duration>)>
    + Send
    + Unpin { }
Expand description

A pull stream that yields Bytes chunks.

Each chunk is accompanied by an optional retry delay on error.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E, T> PullStream<E> for T
where T: TryStream<Ok = Bytes, Error = (E, Option<Duration>)> + Send + Unpin,