Struct tsukuyomi::output::ResponseBody[][src]

pub struct ResponseBody(_);

A type representing the message body in HTTP response.

Methods

impl ResponseBody
[src]

Creates an empty ResponseBody.

Wraps a stream of buffers of bytes and creates a chunked ResponseBody.

Trait Implementations

impl Debug for ResponseBody
[src]

Formats the value using the given formatter. Read more

impl Default for ResponseBody
[src]

Returns the "default value" for a type. Read more

impl From<()> for ResponseBody
[src]

Performs the conversion.

impl From<Body> for ResponseBody
[src]

Performs the conversion.

impl From<Chunk> for ResponseBody
[src]

Performs the conversion.

impl From<&'static str> for ResponseBody
[src]

Performs the conversion.

impl From<&'static [u8]> for ResponseBody
[src]

Performs the conversion.

impl From<String> for ResponseBody
[src]

Performs the conversion.

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

Performs the conversion.

impl From<Cow<'static, str>> for ResponseBody
[src]

Performs the conversion.

impl From<Cow<'static, [u8]>> for ResponseBody
[src]

Performs the conversion.

impl From<Bytes> for ResponseBody
[src]

Performs the conversion.

impl From<Chunk> for ResponseBody
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ResponseBody

impl !Sync for ResponseBody