Struct tokio_http2::http::buffer::Buffer
[−]
[src]
pub struct Buffer { /* fields omitted */ }
Methods
impl Buffer
[src]
fn new() -> Buffer
fn reset(&mut self)
fn len(&self) -> usize
fn is_max_size(&self) -> bool
fn is_empty(&self) -> bool
fn bytes(&self) -> &[u8]
fn consume(&mut self, pos: usize)
fn consume_leading_lines(&mut self)
fn read_from<R: Read>(&mut self, r: &mut R) -> Result<usize>
fn write_into<W: Write>(&mut self, w: &mut W) -> Result<usize>
fn write(&mut self, data: &[u8]) -> usize
Trait Implementations
impl Debug for Buffer
[src]
impl Default for Buffer
[src]
impl Clone for Buffer
[src]
fn clone(&self) -> Buffer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more