#include <userver/engine/io/common.hpp>
Interface for writable streams
Definition at line 113 of file common.hpp.
Public Member Functions | |
| virtual size_t | WriteAll (const void *buf, size_t len, Deadline deadline)=0 |
| Sends exactly len bytes of buf. | |
| 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). | |
| virtual bool | WaitWriteable (Deadline deadline)=0 |
| Suspends current task until the data is available. | |
| AwaitableToken | GetAwaitableToken () |
| Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends. | |
Protected Member Functions | |
| void | SetWritableAwaitableToken (AwaitableToken token) |
|
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.
|
nodiscardpure virtualinherited |
Suspends current task until the data is available.
Implemented in engine::io::PipeWriter, engine::io::Socket, and engine::io::TlsWrapper.
|
nodiscardpure virtual |
Sends exactly len bytes of buf.
Implemented in engine::io::PipeWriter, engine::io::Socket, and engine::io::TlsWrapper.
|
inlinenodiscardvirtual |
Sends IoData initializer list using vector I/O (e.g. writev).
Reimplemented in engine::io::TlsWrapper.
Definition at line 133 of file common.hpp.
|
inlinenodiscardvirtual |
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.