#include <userver/engine/io/pipe.hpp>
Inheritance diagram for engine::io::PipeWriter:Public Member Functions | |
| bool | IsValid () const |
| Whether the writing end of the pipe is valid. | |
| bool | WaitWriteable (Deadline) override |
| size_t | WriteAll (const void *buf, size_t len, Deadline deadline) override |
| int | Fd () const |
| File descriptor corresponding to the write end of the pipe. | |
| int | Release () noexcept |
| Releases writing end file descriptor and invalidates it. | |
| void | Close () |
| virtual size_t | WriteAll (std::span< const IoData > list, Deadline deadline) |
| Sends IoData array using vector I/O (e.g. writev). | |
| virtual size_t | WriteAll (std::initializer_list< IoData > list, Deadline deadline) |
| Sends IoData initializer list using vector I/O (e.g. writev). | |
| AwaitableToken | GetAwaitableToken () |
| Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends. | |
Protected Member Functions | |
| void | SetWritableAwaitableToken (AwaitableToken token) |
| void engine::io::PipeWriter::Close | ( | ) |
Closes and invalidates the writing end of the pipe.
|
inlineinherited |
Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends.
Definition at line 91 of file common.hpp.
|
inlineprotectedinherited |
Definition at line 96 of file common.hpp.
|
nodiscardoverridevirtual |
Suspends current task until the pipe can accept more data.
Implements engine::io::WriteAwaiter.
|
nodiscardoverridevirtual |
Sends exactly len bytes to the pipe.
Implements engine::io::WritableBase.
|
inlinenodiscardvirtualinherited |
Sends IoData initializer list using vector I/O (e.g. writev).
Reimplemented in engine::io::TlsWrapper.
Definition at line 133 of file common.hpp.
|
inlinenodiscardvirtualinherited |
Sends IoData array using vector I/O (e.g. writev).
Reimplemented in engine::io::Socket, and engine::io::TlsWrapper.
Definition at line 123 of file common.hpp.