Struct kvarn::application::ByteBody

source ·
pub struct ByteBody { /* private fields */ }
Expand description

The data for Body::Bytes.

Implementations§

source§

impl ByteBody

source

pub fn read_rest(&mut self) -> Bytes

Read the rest of the bytes of this body

source

pub fn read_n(&mut self, n: usize) -> Bytes

Read n bytes of this body

Trait Implementations§

source§

impl Debug for ByteBody

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more