8#include "ublk/ublk_cmd.h"
15namespace ex = condy::detail::ex;
23 template <
typename Env>
24 requires requires(
const Env &env) {
25 env.query(std::declval<fetch_dev_info_t>());
27 constexpr const ublksrv_ctrl_dev_info *
28 operator()(
const Env &env)
const noexcept {
32 template <
typename Env>
33 requires(!
requires(
const Env &env) {
34 env.query(std::declval<fetch_dev_info_t>());
36 constexpr const ublksrv_ctrl_dev_info *
37 operator()(
const Env &)
const noexcept {
42 static consteval bool query(detail::ex::forwarding_query_t)
noexcept {
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...