|
For the latest stable version, please use Emilua API 0.11! |
pipe.read_stream
Functions
new() → pipe.read_stream
new() (1)
new(fd: file_descriptor) (2)
| 1 | Default constructor. |
| 2 | Converts a file descriptor into a pipe end. |
close(self)
Close the pipe.
Forward the call to the function with same name in Boost.Asio:
Any asynchronous read operations will be cancelled immediately, and will complete with the
boost::asio::error::operation_abortederror.
cancel(self)
Cancel all asynchronous operations associated with the pipe.
Forward the call to the function with same name in Boost.Asio:
This function causes all outstanding asynchronous read operations to finish immediately, and the handlers for cancelled operations will be passed the
boost::asio::error::operation_abortederror.
release(self) → file_descriptor
Release ownership of the native descriptor implementation.
Forward the call to the function with same name in Boost.Asio:
This function causes all outstanding asynchronous read operations to finish immediately, and the handlers for cancelled operations will be passed the
boost::asio::error::operation_abortederror. Ownership of the native pipe is then transferred to the caller.