Struct varu64::LimitedReader [] [src]

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

Wraps a reader and limits the number of bytes that can be read from it. Once the limit has been reached, further calls to poll_read will return Ok(Ready(0)).

Methods

impl<R> LimitedReader<R>
[src]

[src]

Create a new LimitedReader, wrapping the given reader.

Trait Implementations

impl<R: AsyncRead> AsyncRead for LimitedReader<R>
[src]

[src]

Attempt to read from the AsyncRead into buf. Read more

[src]

Determines if this AsyncReader can work with buffers of uninitialized memory. Read more

[src]

Attempt to read from the AsyncRead into vec using vectored IO operations. Read more

Auto Trait Implementations

impl<R> Send for LimitedReader<R> where
    R: Send

impl<R> Sync for LimitedReader<R> where
    R: Sync