9#include "ublk/ublk_cmd.h"
20 template <
typename Env>
21 requires requires(
const Env &env) {
22 env.query(std::declval<fetch_dev_info_t>());
24 constexpr const ublksrv_ctrl_dev_info *
25 operator()(
const Env &env)
const noexcept {
29 template <
typename Env>
30 requires(!
requires(
const Env &env) {
31 env.query(std::declval<fetch_dev_info_t>());
33 constexpr const ublksrv_ctrl_dev_info *
34 operator()(
const Env &)
const noexcept {
39 static consteval bool query(detail::ex::forwarding_query_t)
noexcept {
The std::execution backend namespace used by ublk-cpp.
The main namespace of the ublk-cpp library.
constexpr fetch_dev_info_t fetch_dev_info
Query object instance of fetch_dev_info_t.
Environment query for the cached ublk device info. Returns nullptr if the environment doesn't provide...