Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:08:25

0001 /* Copyright (c) 2018-2024 Marcelo Zimbres Silva (mzimbres@gmail.com)
0002  *
0003  * Distributed under the Boost Software License, Version 1.0. (See
0004  * accompanying file LICENSE.txt)
0005  */
0006 
0007 #ifndef BOOST_REDIS_OPERATION_HPP
0008 #define BOOST_REDIS_OPERATION_HPP
0009 
0010 namespace boost::redis {
0011 
0012 /** @brief Connection operations that can be cancelled.
0013  *  @ingroup high-level-api
0014  *  
0015  *  The operations listed below can be passed to the
0016  *  `boost::redis::connection::cancel` member function.
0017  */
0018 enum class operation {
0019    /// Resolve operation.
0020    resolve,
0021    /// Connect operation.
0022    connect,
0023    /// SSL handshake operation.
0024    ssl_handshake,
0025    /// Refers to `connection::async_exec` operations.
0026    exec,
0027    /// Refers to `connection::async_run` operations.
0028    run,
0029    /// Refers to `connection::async_receive` operations.
0030    receive,
0031    /// Cancels reconnection.
0032    reconnection,
0033    /// Health check operation.
0034    health_check,
0035    /// Refers to all operations.
0036    all,
0037 };
0038 
0039 } // boost::redis
0040 
0041 #endif // BOOST_REDIS_OPERATION_HPP