[]Struct http_service::Body

pub struct Body { /* fields omitted */ }

The raw body of an http request or response.

Methods

impl Body[src]

pub fn empty() -> Self[src]

Create a new empty body.

pub fn from_reader(reader: impl BufRead + Unpin + Send + 'static) -> Self[src]

Create a new instance from a reader.

Trait Implementations

impl<'__pin> Unpin for Body where
    __Origin<'__pin>: Unpin

impl From<Vec<u8>> for Body[src]

impl<R: BufRead + Unpin + Send + 'static> From<Pin<Box<R>>> for Body[src]

fn from(reader: Pin<Box<R>>) -> Self[src]

Converts an AsyncRead into a Body.

impl Debug for Body[src]

impl AsyncBufRead for Body[src]

impl AsyncRead for Body[src]

Auto Trait Implementations

impl Send for Body

impl !Sync for Body

impl !UnwindSafe for Body

impl !RefUnwindSafe for Body

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> BufReadExt for T where
    T: AsyncBufRead + ?Sized
[src]

impl<T> ReadExt for T where
    T: AsyncRead + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<R> AsyncBufReadExt for R where
    R: AsyncBufRead + ?Sized
[src]