pub struct Receiver { /* private fields */ }
Expand description

Receiving end of an Unix pipe.

Created by calling new or converted from ChildStdout or ChildStderr.

Implementations

Convert a ChildStdout to a Receiver.

Convert a ChildStderr to a Receiver.

Attempt to read bytes from the pipe, writing them into buf.

If no bytes can currently be read this will return an error with the kind set to ErrorKind::WouldBlock. Most users should prefer to use Receiver::read or Receiver::read_n.

Read bytes from the pipe, writing them into buf.

Read at least n bytes from the pipe, writing them into buf.

This returns a Future that receives at least n bytes from the Receiver and writes them into buffer B, or returns io::ErrorKind::UnexpectedEof if less then n bytes could be read.

Attempt to read bytes from the pipe, writing them into bufs.

If no bytes can currently be read this will return an error with the kind set to ErrorKind::WouldBlock. Most users should prefer to use Receiver::read_vectored or Receiver::read_n_vectored.

Read bytes from the pipe, writing them into bufs.

Read at least n bytes from the pipe, writing them into bufs.

Trait Implementations

Error type used in bind_to. Read more

Bind a type to the Actor that owns the ctx. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.