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

Sending end of an Unix pipe.

Created by calling new or converted from ChildStdin.

Implementations

Convert a ChildStdin to a Sender.

Attempt to write the bytes in buf into the pipe.

If no bytes can currently be written this will return an error with the kind set to ErrorKind::WouldBlock. Most users should prefer to use Sender::write or Sender::write_all.

Write the bytes in buf into the pipe.

Return the number of bytes written. This may we fewer then the length of buf. To ensure that all bytes are written use Sender::write_all.

Write the all bytes in buf into the pipe.

If this fails to write all bytes (this happens if a write returns Ok(0)) this will return io::ErrorKind::WriteZero.

Attempt to write the bytes in bufs into the pipe.

If no bytes can currently be written this will return an error with the kind set to ErrorKind::WouldBlock. Most users should prefer to use Sender::write_vectored or Sender::write_vectored_all.

Write the bytes in bufs intoto the pipe.

Return the number of bytes written. This may we fewer then the length of bufs. To ensure that all bytes are written use Sender::write_vectored_all.

Write the all bytes in bufs into the pipe.

If this fails to write all bytes (this happens if a write returns Ok(0)) this will return io::ErrorKind::WriteZero.

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.