10#include <userver/engine/deadline.hpp>
12USERVER_NAMESPACE_BEGIN
14namespace engine::impl {
28 virtual ~ReadableBase();
60 void SetReadableContextAccessor(impl::ContextAccessor* ca) { ca_ = ca; }
63 impl::ContextAccessor* ca_{
nullptr};
77 virtual ~WritableBase();
87 [[
nodiscard]]
virtual size_t WriteAll(std::initializer_list<IoData> list,
90 for (
const auto& io_data : list) {
91 result += WriteAll(io_data.data, io_data.len, deadline);
100 void SetWritableContextAccessor(impl::ContextAccessor* ca) { ca_ = ca; }
103 impl::ContextAccessor* ca_{
nullptr};