[][src]Struct piper::Reader

pub struct Reader { /* fields omitted */ }

The reading side of a pipe.

This struct is created by the pipe function. See its documentation for more.

Examples

use futures::prelude::*;

let (mut r, mut w) = piper::pipe(1024);

// Write 4 bytes.
w.write_all(b"hello").await?;

// Read 4 bytes message.
let mut buf = [0u8; 4];
r.read_exact(&mut buf).await?;

Trait Implementations

impl AsyncRead for Reader[src]

impl<'_> AsyncRead for &'_ Reader[src]

impl Debug for Reader[src]

impl Drop for Reader[src]

impl Send for Reader[src]

Auto Trait Implementations

impl !RefUnwindSafe for Reader

impl !Sync for Reader

impl Unpin for Reader

impl !UnwindSafe for Reader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.