10#include <userver/engine/deadline.hpp>
12USERVER_NAMESPACE_BEGIN
14namespace engine::
impl {
28 virtual ~ReadableBase();
57 void SetReadableContextAccessor(
impl::ContextAccessor* ca) { ca_ = ca; }
60 impl::ContextAccessor* ca_{
nullptr};
74 virtual ~WritableBase();
83 [[
nodiscard]]
virtual size_t WriteAll(std::initializer_list<IoData> list, Deadline deadline) {
85 for (
const auto& io_data : list) {
86 result += WriteAll(io_data.data, io_data.len, deadline);
95 void SetWritableContextAccessor(
impl::ContextAccessor* ca) { ca_ = ca; }
98 impl::ContextAccessor* ca_{
nullptr};