BodyStreamState

Trait BodyStreamState 

Source
pub trait BodyStreamState {
    type Stream<'b>: Stream<Item = Chunk>
       where Self: 'b;

    // Required methods
    fn contains_body(&self) -> bool;
    fn stream(&self) -> Self::Stream<'_>;
}

Required Associated Types§

Source

type Stream<'b>: Stream<Item = Chunk> where Self: 'b

Required Methods§

Source

fn contains_body(&self) -> bool

Source

fn stream(&self) -> Self::Stream<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§