Struct async_ringbuffer::Reader [] [src]

pub struct Reader(_);

Read access to a nonblocking ring buffer with fixed capacity.

If there is no data in the buffer to read from, the current task is parked and notified once data becomes available.

Trait Implementations

impl Drop for Reader
[src]

[src]

Executes the destructor for this type. Read more

impl AsyncRead for Reader
[src]

[src]

Read data from the RingBuffer.

This only returns Ok(Ready(0)) if either buf.len() == 0, poll_close was called on the corresponding Writer and all buffered data has been read, or if the corresponding Writer has been dropped.

Errors

This never emits an error.

[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 !Send for Reader

impl !Sync for Reader