For the latest stable version, please use Emilua API 0.10! |
pipe.write_stream
Functions
new() → pipe.write_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 write operations will be cancelled immediately, and will complete with the
boost::asio::error::operation_aborted
error.
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 write operations to finish immediately, and the handlers for cancelled operations will be passed the
boost::asio::error::operation_aborted
error.
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 write operations to finish immediately, and the handlers for cancelled operations will be passed the
boost::asio::error::operation_aborted
error. Ownership of the native pipe is then transferred to the caller.