[][src]Struct roa_core::Body

pub struct Body { /* fields omitted */ }

Methods

impl Body[src]

pub fn new() -> Self[src]

pub fn write_buf(
    &mut self,
    buf_reader: impl BufRead + Sync + Send + Unpin + 'static
) -> &mut Self
[src]

pub fn write(
    &mut self,
    reader: impl Read + Sync + Send + Unpin + 'static
) -> &mut Self
[src]

pub fn write_bytes(&mut self, bytes: impl Into<Vec<u8>>) -> &mut Self[src]

pub fn write_str(&mut self, data: impl ToString) -> &mut Self[src]

pub fn stream(self) -> BodyStream<Self>[src]

pub fn poll_segment(&mut self, cx: &mut Context) -> Poll<Result<&[u8], Error>>[src]

Trait Implementations

impl AsyncBufRead for Body[src]

impl AsyncRead for Body[src]

impl Default for Body[src]

Auto Trait Implementations

impl !RefUnwindSafe for Body

impl Send for Body

impl Sync for Body

impl Unpin for Body

impl !UnwindSafe for Body

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.