Skip to main content

BodyExt

Trait BodyExt 

Source
pub trait BodyExt: Body {
    // Provided methods
    fn frame(&mut self) -> FrameFuture<'_, Self>
       where Self: Unpin { ... }
    fn data(&mut self) -> DataFuture<'_, Self>
       where Self: Unpin { ... }
    fn chain<B>(self, other: B) -> ChainBody<Self, B>
       where B: Body<Data = Self::Data>,
             Self: Sized,
             Self::Error: From<B::Error> { ... }
}

Provided Methods§

Source

fn frame(&mut self) -> FrameFuture<'_, Self>
where Self: Unpin,

Source

fn data(&mut self) -> DataFuture<'_, Self>
where Self: Unpin,

Source

fn chain<B>(self, other: B) -> ChainBody<Self, B>
where B: Body<Data = Self::Data>, Self: Sized, Self::Error: From<B::Error>,

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§

Source§

impl<B> BodyExt for B
where B: Body,