Struct websocket::server::upgrade::from_hyper::BufReader [] [src]

pub struct BufReader<R> { /* fields omitted */ }

Methods

impl<R> BufReader<R> where R: Read
[src]

Extracts the buffer from this reader. Return the current cursor position and the position of the last valid byte.

This operation does not copy the buffer. Instead, it directly returns the internal buffer. As a result, this reader will no longer have any buffered contents and any subsequent read from this reader will not include the returned buffered contents.

Trait Implementations

impl<R> Read for BufReader<R> where R: Read
[src]

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read the exact number of bytes required to fill buf. Read more

Creates a "by reference" adaptor for this instance of Read. Read more

Transforms this Read instance to an Iterator over its bytes. Read more

🔬 This is a nightly-only experimental API. (io)

the semantics of a partial read/write of where errors happen is currently unclear and may change

Transforms this Read instance to an Iterator over chars. Read more

Creates an adaptor which will chain this stream with another. Read more

Creates an adaptor which will read at most limit bytes from it. Read more

impl<R> BufRead for BufReader<R> where R: Read
[src]