operation.hpp 1012 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (c) 2018-2023 Marcelo Zimbres Silva ([email protected])
  2. *
  3. * Distributed under the Boost Software License, Version 1.0. (See
  4. * accompanying file LICENSE.txt)
  5. */
  6. #ifndef BOOST_REDIS_OPERATION_HPP
  7. #define BOOST_REDIS_OPERATION_HPP
  8. namespace boost::redis {
  9. /** @brief Connection operations that can be cancelled.
  10. * @ingroup high-level-api
  11. *
  12. * The operations listed below can be passed to the
  13. * `boost::redis::connection::cancel` member function.
  14. */
  15. enum class operation {
  16. /// Resolve operation.
  17. resolve,
  18. /// Connect operation.
  19. connect,
  20. /// SSL handshake operation.
  21. ssl_handshake,
  22. /// Refers to `connection::async_exec` operations.
  23. exec,
  24. /// Refers to `connection::async_run` operations.
  25. run,
  26. /// Refers to `connection::async_receive` operations.
  27. receive,
  28. /// Cancels reconnection.
  29. reconnection,
  30. /// Health check operation.
  31. health_check,
  32. /// Refers to all operations.
  33. all,
  34. };
  35. } // boost::redis
  36. #endif // BOOST_REDIS_OPERATION_HPP