90 std::optional<net::tool_view> tool_m;
97 : std::formatter<std::string>
99 auto format(const ::pars_example::resource::client_state& s,
100 format_context& ctx)
const ->
decltype(ctx.out())
106 case client_state::creating:
107 return format_to(ctx.out(),
"creating");
110 case client_state::initializing:
111 return format_to(ctx.out(),
"initializing");
114 case client_state::started:
115 return format_to(ctx.out(),
"started");
118 case client_state::sending_work:
119 return format_to(ctx.out(),
"sending work");
122 case client_state::waiting_work_done:
123 return format_to(ctx.out(),
"waiting work done");
126 case client_state::terminating:
127 return format_to(ctx.out(),
"terminating");
130 case client_state::terminated:
131 return format_to(ctx.out(),
"terminated");
135 return format_to(ctx.out(),
"<client_state-{}>",
static_cast<int>(s));
143 : std::formatter<std::string>
145 auto format(const ::pars_example::resource::server_state& s,
146 format_context& ctx)
const ->
decltype(ctx.out())
152 case server_state::creating:
153 return format_to(ctx.out(),
"creating");
156 case server_state::initializing:
157 return format_to(ctx.out(),
"initializing");
160 case server_state::running:
161 return format_to(ctx.out(),
"running");
164 case server_state::terminating:
165 return format_to(ctx.out(),
"terminating");
169 return format_to(ctx.out(),
"<server_state-{}>",
static_cast<int>(s));
177 : std::formatter<std::string>
179 auto format(const ::pars_example::resource::pipe_state& s,
180 format_context& ctx)
const ->
decltype(ctx.out())
186 case pipe_state::waiting_work:
187 return format_to(ctx.out(),
"waiting work");
190 case pipe_state::working:
191 return format_to(ctx.out(),
"working");
194 case pipe_state::done:
195 return format_to(ctx.out(),
"done");
198 case pipe_state::failing:
199 return format_to(ctx.out(),
"failing");
203 return format_to(ctx.out(),
"<pipe_state-{}>",
static_cast<int>(s));
constexpr auto enable_compute_fib_async
pipe_resource(pipe_state s)
pipe_resource(const pipe_resource &)=delete
void save_tool(net::tool_view t)
app::state_machine< pipe_state > state
pipe_resource(pipe_resource &&)=delete
const net::tool_view & load_tool() const