Struct conjure_runtime::BytesBody[][src]

pub struct BytesBody { /* fields omitted */ }
Expand description

A simple type implementing Body which consists of a byte buffer and a content type.

It reports its content length and is resettable.

Implementations

Creates a new BytesBody.

Trait Implementations

Returns the length of the body if known.

Returns the content type of the body.

Returns the entire body if it is fully buffered. Read more

Writes the body data out.

Resets the body to its start. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more