7#ifndef BOOST_REDIS_READER_FSM_HPP
8#define BOOST_REDIS_READER_FSM_HPP
10#include <boost/redis/detail/multiplexer.hpp>
12#include <boost/asio/cancellation_type.hpp>
13#include <boost/system/error_code.hpp>
17namespace boost::redis::detail {
32 type type_ = type::setup_cancellation;
33 std::size_t push_size_ = 0;
34 system::error_code ec_ = {};
37 explicit reader_fsm(multiplexer& mpx)
noexcept;
40 std::size_t bytes_read,
41 system::error_code ec,
42 asio::cancellation_type_t );
46 action action_after_resume_;
47 action::type next_read_type_ = action::type::append_some;
48 multiplexer* mpx_ =
nullptr;
49 std::pair<tribool, std::size_t> res_{std::make_pair(std::nullopt, 0)};