iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
enum_translation.hpp
Go to the documentation of this file.
1// Copyright (c) 2024 Contributors to the Eclipse Foundation
2//
3// See the NOTICE file(s) distributed with this work for additional
4// information regarding copyright ownership.
5//
6// This program and the accompanying materials are made available under the
7// terms of the Apache Software License 2.0 which is available at
8// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9// which is available at https://opensource.org/licenses/MIT.
10//
11// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13#ifndef IOX2_ENUM_TRANSLATION_HPP
14#define IOX2_ENUM_TRANSLATION_HPP
15
21#include "iox2/bb/into.hpp"
24#include "iox2/client_error.hpp"
31#include "iox2/iceoryx2.h"
33#include "iox2/log_level.hpp"
38#include "iox2/port_error.hpp"
40#include "iox2/reader_error.hpp"
41#include "iox2/server_error.hpp"
47#include "iox2/service_type.hpp"
50#include "iox2/type_variant.hpp"
53#include "iox2/writer_error.hpp"
54
55namespace iox2 {
56namespace bb {
57template <>
59 const auto error = static_cast<iox2_semantic_string_error_e>(value);
60 switch (error) {
61 case iox2_semantic_string_error_e_INVALID_CONTENT:
63 case iox2_semantic_string_error_e_EXCEEDS_MAXIMUM_LENGTH:
65 }
66
68}
69
70template <>
71constexpr auto
73 -> iox2_semantic_string_error_e {
74 switch (value) {
76 return iox2_semantic_string_error_e_INVALID_CONTENT;
78 return iox2_semantic_string_error_e_EXCEEDS_MAXIMUM_LENGTH;
79 }
80
82}
83
84template <>
86 -> const char* {
87 return iox2_semantic_string_error_string(iox2::bb::into<iox2_semantic_string_error_e>(value));
88}
89
90template <>
91constexpr auto from<int, iox2::ServiceType>(const int value) noexcept -> iox2::ServiceType {
92 const auto service_type = static_cast<iox2_service_type_e>(value);
93 switch (service_type) {
94 case iox2_service_type_e_IPC:
96 case iox2_service_type_e_LOCAL:
98 }
99
101}
102
103template <>
105 -> iox2_service_type_e {
106 switch (value) {
108 return iox2_service_type_e_IPC;
110 return iox2_service_type_e_LOCAL;
111 }
112
114}
115
116template <>
117constexpr auto from<int, iox2::NodeCreationFailure>(const int value) noexcept -> iox2::NodeCreationFailure {
118 const auto error = static_cast<iox2_node_creation_failure_e>(value);
119 switch (error) {
120 case iox2_node_creation_failure_e_INSUFFICIENT_PERMISSIONS:
122 case iox2_node_creation_failure_e_INTERNAL_ERROR:
124 case iox2_node_creation_failure_e_SYSTEM_CORRUPTED:
126 case iox2_node_creation_failure_e_UNABLE_TO_GENERATE_UNIQUE_NODE_ID:
128 case iox2_node_creation_failure_e_UNABLE_TO_OPEN_OR_CREATE_NAME_GENERATOR:
130 case iox2_node_creation_failure_e_FAILED_TO_OPEN_CLOCK:
132 case iox2_node_creation_failure_e_INTERRUPTED_BY_SIGNAL:
134 }
135
137}
138
139template <>
140constexpr auto
142 -> iox2_node_creation_failure_e {
143 switch (value) {
145 return iox2_node_creation_failure_e_INSUFFICIENT_PERMISSIONS;
147 return iox2_node_creation_failure_e_INTERNAL_ERROR;
149 return iox2_node_creation_failure_e_SYSTEM_CORRUPTED;
151 return iox2_node_creation_failure_e_UNABLE_TO_GENERATE_UNIQUE_NODE_ID;
153 return iox2_node_creation_failure_e_UNABLE_TO_OPEN_OR_CREATE_NAME_GENERATOR;
155 return iox2_node_creation_failure_e_FAILED_TO_OPEN_CLOCK;
157 return iox2_node_creation_failure_e_INTERRUPTED_BY_SIGNAL;
158 }
159
161}
162
163template <>
165 char* {
166 return iox2_node_creation_failure_string(iox2::bb::into<iox2_node_creation_failure_e>(value));
167}
168
169template <>
170constexpr auto from<int, iox2::CallbackProgression>(const int value) noexcept -> iox2::CallbackProgression {
171 const auto error = static_cast<iox2_callback_progression_e>(value);
172 switch (error) {
173 case iox2_callback_progression_e_CONTINUE:
175 case iox2_callback_progression_e_STOP:
177 }
178
180}
181
182template <>
183constexpr auto
185 -> iox2_callback_progression_e {
186 switch (value) {
188 return iox2_callback_progression_e_CONTINUE;
190 return iox2_callback_progression_e_STOP;
191 }
192
194}
195
196template <>
197constexpr auto from<int, iox2::NodeListFailure>(const int value) noexcept -> iox2::NodeListFailure {
198 const auto error = static_cast<iox2_node_list_failure_e>(value);
199 switch (error) {
200 case iox2_node_list_failure_e_INSUFFICIENT_PERMISSIONS:
202 case iox2_node_list_failure_e_INTERNAL_ERROR:
204 case iox2_node_list_failure_e_INTERRUPT:
206 }
207
209}
210
211template <>
213 -> iox2_node_list_failure_e {
214 switch (value) {
216 return iox2_node_list_failure_e_INSUFFICIENT_PERMISSIONS;
218 return iox2_node_list_failure_e_INTERNAL_ERROR;
220 return iox2_node_list_failure_e_INTERRUPT;
221 }
222
224}
225
226template <>
227inline auto from<iox2::NodeListFailure, const char*>(const iox2::NodeListFailure value) noexcept -> const char* {
228 return iox2_node_list_failure_string(iox2::bb::into<iox2_node_list_failure_e>(value));
229}
230
231template <>
232constexpr auto from<int, iox2::NodeWaitFailure>(const int value) noexcept -> iox2::NodeWaitFailure {
233 const auto error = static_cast<iox2_node_wait_failure_e>(value);
234 switch (error) {
235 case iox2_node_wait_failure_e_TERMINATION_REQUEST:
237 case iox2_node_wait_failure_e_INTERRUPT:
239 case iox2_node_wait_failure_e_INTERNAL_ERROR:
241 }
242
244}
245
246template <>
248 -> iox2_node_wait_failure_e {
249 switch (value) {
251 return iox2_node_wait_failure_e_TERMINATION_REQUEST;
253 return iox2_node_wait_failure_e_INTERRUPT;
255 return iox2_node_wait_failure_e_INTERNAL_ERROR;
256 }
257
259}
260
261template <>
262inline auto from<iox2::NodeWaitFailure, const char*>(const iox2::NodeWaitFailure value) noexcept -> const char* {
263 return iox2_node_wait_failure_string(iox2::bb::into<iox2_node_wait_failure_e>(value));
264}
265
266template <>
268 -> iox2_messaging_pattern_e {
269 switch (value) {
271 return iox2_messaging_pattern_e_PUBLISH_SUBSCRIBE;
273 return iox2_messaging_pattern_e_EVENT;
275 return iox2_messaging_pattern_e_REQUEST_RESPONSE;
277 return iox2_messaging_pattern_e_BLACKBOARD;
278 }
279
281}
282
283template <>
284constexpr auto from<int, iox2::ServiceDetailsError>(const int value) noexcept -> iox2::ServiceDetailsError {
285 const auto error = static_cast<iox2_service_details_error_e>(value);
286 switch (error) {
287 case iox2_service_details_error_e_INTERRUPT:
289 case iox2_service_details_error_e_INSUFFICIENT_PERMISSIONS:
291 case iox2_service_details_error_e_FAILED_TO_OPEN_STATIC_SERVICE_INFO:
293 case iox2_service_details_error_e_FAILED_TO_READ_STATIC_SERVICE_INFO:
295 case iox2_service_details_error_e_FAILED_TO_ACQUIRE_NODE_STATE:
297 case iox2_service_details_error_e_FAILED_TO_DESERIALIZE_STATIC_SERVICE_INFO:
299 case iox2_service_details_error_e_INTERNAL_ERROR:
301 case iox2_service_details_error_e_SERVICE_IN_INCONSISTENT_STATE:
303 case iox2_service_details_error_e_VERSION_MISMATCH:
305 }
306
308}
309
310template <>
311constexpr auto
313 -> iox2_service_details_error_e {
314 switch (value) {
316 return iox2_service_details_error_e_INTERRUPT;
318 return iox2_service_details_error_e_INSUFFICIENT_PERMISSIONS;
320 return iox2_service_details_error_e_FAILED_TO_OPEN_STATIC_SERVICE_INFO;
322 return iox2_service_details_error_e_FAILED_TO_READ_STATIC_SERVICE_INFO;
324 return iox2_service_details_error_e_FAILED_TO_ACQUIRE_NODE_STATE;
326 return iox2_service_details_error_e_FAILED_TO_DESERIALIZE_STATIC_SERVICE_INFO;
328 return iox2_service_details_error_e_INTERNAL_ERROR;
330 return iox2_service_details_error_e_SERVICE_IN_INCONSISTENT_STATE;
332 return iox2_service_details_error_e_VERSION_MISMATCH;
333 }
334
336}
337
338template <>
340 char* {
341 return iox2_service_details_error_string(iox2::bb::into<iox2_service_details_error_e>(value));
342}
343
344template <>
346 const auto error = static_cast<iox2_event_open_or_create_error_e>(value);
347 switch (error) {
348 case iox2_event_open_or_create_error_e_O_INTERRUPT:
350 case iox2_event_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
352 case iox2_event_open_or_create_error_e_O_VERSION_MISMATCH:
354 case iox2_event_open_or_create_error_e_O_DOES_NOT_EXIST:
356 case iox2_event_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
358 case iox2_event_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
360 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
362 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
364 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_DEADLINE:
366 case iox2_event_open_or_create_error_e_O_INTERNAL_FAILURE:
368 case iox2_event_open_or_create_error_e_O_HANGS_IN_CREATION:
370 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NOTIFIERS:
372 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_LISTENERS:
374 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MAX_EVENT_ID:
376 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
378 case iox2_event_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
380 case iox2_event_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
382 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_CREATED_EVENT:
384 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DROPPED_EVENT:
386 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DEAD_EVENT:
388
389 case iox2_event_open_or_create_error_e_C_INTERRUPT:
391 case iox2_event_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
393 case iox2_event_open_or_create_error_e_C_INTERNAL_FAILURE:
395 case iox2_event_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
397 case iox2_event_open_or_create_error_e_C_ALREADY_EXISTS:
399 case iox2_event_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
401 case iox2_event_open_or_create_error_e_C_OLD_CONNECTION_STILL_ACTIVE:
403 case iox2_event_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
405 case iox2_event_open_or_create_error_e_C_EVENT_ID_EXCEEDS_MAX_SUPPORTED_VALUE:
407 case iox2_event_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
409 case iox2_event_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
411
412 case iox2_event_open_or_create_error_e_SYSTEM_IN_FLUX:
414 }
415
417}
418
419template <>
420constexpr auto
422 -> iox2_event_open_or_create_error_e {
423 switch (value) {
425 return iox2_event_open_or_create_error_e_O_DOES_NOT_EXIST;
427 return iox2_event_open_or_create_error_e_O_INTERRUPT;
429 return iox2_event_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS;
431 return iox2_event_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE;
433 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN;
435 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES;
437 return iox2_event_open_or_create_error_e_O_INTERNAL_FAILURE;
439 return iox2_event_open_or_create_error_e_O_HANGS_IN_CREATION;
441 return iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NOTIFIERS;
443 return iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_LISTENERS;
445 return iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MAX_EVENT_ID;
447 return iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES;
449 return iox2_event_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES;
451 return iox2_event_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION;
453 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_CREATED_EVENT;
455 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_DEADLINE;
457 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DROPPED_EVENT;
459 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DEAD_EVENT;
461 return iox2_event_open_or_create_error_e_O_VERSION_MISMATCH;
463 return iox2_event_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG;
464
466 return iox2_event_open_or_create_error_e_SYSTEM_IN_FLUX;
467
469 return iox2_event_open_or_create_error_e_C_INTERRUPT;
471 return iox2_event_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG;
473 return iox2_event_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE;
475 return iox2_event_open_or_create_error_e_C_INTERNAL_FAILURE;
477 return iox2_event_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE;
479 return iox2_event_open_or_create_error_e_C_ALREADY_EXISTS;
481 return iox2_event_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS;
483 return iox2_event_open_or_create_error_e_C_OLD_CONNECTION_STILL_ACTIVE;
485 return iox2_event_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED;
487 return iox2_event_open_or_create_error_e_C_EVENT_ID_EXCEEDS_MAX_SUPPORTED_VALUE;
489 return iox2_event_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID;
490 }
491
493}
494
495template <>
497 char* {
498 return iox2_event_open_or_create_error_string(iox2::bb::into<iox2_event_open_or_create_error_e>(value));
499}
500
501template <>
502constexpr auto from<int, iox2::EventOpenError>(const int value) noexcept -> iox2::EventOpenError {
503 const auto error = static_cast<iox2_event_open_or_create_error_e>(value);
504 switch (error) {
505 case iox2_event_open_or_create_error_e_O_INTERRUPT:
507 case iox2_event_open_or_create_error_e_O_DOES_NOT_EXIST:
509 case iox2_event_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
511 case iox2_event_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
513 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
515 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
517 case iox2_event_open_or_create_error_e_O_INTERNAL_FAILURE:
519 case iox2_event_open_or_create_error_e_O_HANGS_IN_CREATION:
521 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NOTIFIERS:
523 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_LISTENERS:
525 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MAX_EVENT_ID:
527 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
529 case iox2_event_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
531 case iox2_event_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
533 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_DEADLINE:
535 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_CREATED_EVENT:
537 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DROPPED_EVENT:
539 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DEAD_EVENT:
541 case iox2_event_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
543 case iox2_event_open_or_create_error_e_O_VERSION_MISMATCH:
545 // NOLINTBEGIN(bugprone-branch-clone) ignored so that enum changes are detected as a compiler warning and not cause a panic with IOX2_UNREACHABLE
546 case iox2_event_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
548 case iox2_event_open_or_create_error_e_C_INTERNAL_FAILURE:
550 case iox2_event_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
552 case iox2_event_open_or_create_error_e_C_ALREADY_EXISTS:
554 case iox2_event_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
556 case iox2_event_open_or_create_error_e_C_OLD_CONNECTION_STILL_ACTIVE:
558 case iox2_event_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
560 case iox2_event_open_or_create_error_e_C_EVENT_ID_EXCEEDS_MAX_SUPPORTED_VALUE:
562 case iox2_event_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
564 case iox2_event_open_or_create_error_e_C_INTERRUPT:
566 case iox2_event_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
568 case iox2_event_open_or_create_error_e_SYSTEM_IN_FLUX:
570 // NOLINTEND(bugprone-branch-clone)
571 }
573}
574
575template <>
577 -> iox2_event_open_or_create_error_e {
578 switch (value) {
580 return iox2_event_open_or_create_error_e_O_INTERRUPT;
582 return iox2_event_open_or_create_error_e_O_DOES_NOT_EXIST;
584 return iox2_event_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS;
586 return iox2_event_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE;
588 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN;
590 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES;
592 return iox2_event_open_or_create_error_e_O_INTERNAL_FAILURE;
594 return iox2_event_open_or_create_error_e_O_HANGS_IN_CREATION;
596 return iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NOTIFIERS;
598 return iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_LISTENERS;
600 return iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MAX_EVENT_ID;
602 return iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES;
604 return iox2_event_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES;
606 return iox2_event_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION;
608 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_CREATED_EVENT;
610 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DROPPED_EVENT;
612 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DEAD_EVENT;
614 return iox2_event_open_or_create_error_e_O_INCOMPATIBLE_DEADLINE;
616 return iox2_event_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG;
618 return iox2_event_open_or_create_error_e_O_VERSION_MISMATCH;
619 }
620
622}
623
624template <>
625inline auto from<iox2::EventOpenError, const char*>(const iox2::EventOpenError value) noexcept -> const char* {
626 return iox2_event_open_or_create_error_string(iox2::bb::into<iox2_event_open_or_create_error_e>(value));
627}
628
629template <>
630constexpr auto from<int, iox2::EventCreateError>(const int value) noexcept -> iox2::EventCreateError {
631 const auto error = static_cast<iox2_event_open_or_create_error_e>(value);
632 switch (error) {
633 case iox2_event_open_or_create_error_e_C_INTERRUPT:
635 case iox2_event_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
637 case iox2_event_open_or_create_error_e_C_INTERNAL_FAILURE:
639 case iox2_event_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
641 case iox2_event_open_or_create_error_e_C_ALREADY_EXISTS:
643 case iox2_event_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
645 case iox2_event_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
647 case iox2_event_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
649 case iox2_event_open_or_create_error_e_C_EVENT_ID_EXCEEDS_MAX_SUPPORTED_VALUE:
651 case iox2_event_open_or_create_error_e_C_OLD_CONNECTION_STILL_ACTIVE:
653 case iox2_event_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
655 // NOLINTBEGIN(bugprone-branch-clone) ignored so that enum changes are detected as a compiler warning and not cause a panic with IOX2_UNREACHABLE
656 case iox2_event_open_or_create_error_e_SYSTEM_IN_FLUX:
658 case iox2_event_open_or_create_error_e_O_DOES_NOT_EXIST:
660 case iox2_event_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
662 case iox2_event_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
664 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
666 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
668 case iox2_event_open_or_create_error_e_O_INTERNAL_FAILURE:
670 case iox2_event_open_or_create_error_e_O_HANGS_IN_CREATION:
672 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NOTIFIERS:
674 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_LISTENERS:
676 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MAX_EVENT_ID:
678 case iox2_event_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
680 case iox2_event_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
682 case iox2_event_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
684 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_DEADLINE:
686 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_CREATED_EVENT:
688 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DROPPED_EVENT:
690 case iox2_event_open_or_create_error_e_O_INCOMPATIBLE_NOTIFIER_DEAD_EVENT:
692 case iox2_event_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
694 case iox2_event_open_or_create_error_e_O_VERSION_MISMATCH:
696 case iox2_event_open_or_create_error_e_O_INTERRUPT:
698 // NOLINTEND(bugprone-branch-clone)
699 }
701}
702
703template <>
704constexpr auto
706 -> iox2_event_open_or_create_error_e {
707 switch (value) {
709 return iox2_event_open_or_create_error_e_C_INTERRUPT;
711 return iox2_event_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS;
713 return iox2_event_open_or_create_error_e_C_ALREADY_EXISTS;
715 return iox2_event_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE;
717 return iox2_event_open_or_create_error_e_C_INTERNAL_FAILURE;
719 return iox2_event_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE;
721 return iox2_event_open_or_create_error_e_C_OLD_CONNECTION_STILL_ACTIVE;
723 return iox2_event_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG;
725 return iox2_event_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED;
727 return iox2_event_open_or_create_error_e_C_EVENT_ID_EXCEEDS_MAX_SUPPORTED_VALUE;
729 return iox2_event_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID;
730 }
731
733}
734
735template <>
736inline auto from<iox2::EventCreateError, const char*>(const iox2::EventCreateError value) noexcept -> const char* {
737 return iox2_event_open_or_create_error_string(iox2::bb::into<iox2_event_open_or_create_error_e>(value));
738}
739
740template <>
741constexpr auto from<int, iox2::PublishSubscribeOpenOrCreateError>(const int value) noexcept
743 const auto error = static_cast<iox2_pub_sub_open_or_create_error_e>(value);
744 switch (error) {
745 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_EXIST:
747 case iox2_pub_sub_open_or_create_error_e_O_INTERRUPT:
749 case iox2_pub_sub_open_or_create_error_e_O_INTERNAL_FAILURE:
751 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_TYPES:
753 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
755 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
757 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_BUFFER_SIZE:
759 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_HISTORY_SIZE:
761 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_SUBSCRIBER_BORROWED_SAMPLES:
763 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_PUBLISHERS:
765 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SUBSCRIBERS:
767 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
769 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR:
771 case iox2_pub_sub_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
773 case iox2_pub_sub_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
775 case iox2_pub_sub_open_or_create_error_e_O_HANGS_IN_CREATION:
777 case iox2_pub_sub_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
779 case iox2_pub_sub_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
781 case iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
783 case iox2_pub_sub_open_or_create_error_e_O_VERSION_MISMATCH:
785 case iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
787 case iox2_pub_sub_open_or_create_error_e_O_INVALID_TYPE_DEFINITION:
789 case iox2_pub_sub_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
791
792 case iox2_pub_sub_open_or_create_error_e_C_INTERRUPT:
794 case iox2_pub_sub_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
796 case iox2_pub_sub_open_or_create_error_e_C_SUBSCRIBER_BUFFER_MUST_BE_LARGER_THAN_HISTORY_SIZE:
798 case iox2_pub_sub_open_or_create_error_e_C_ALREADY_EXISTS:
800 case iox2_pub_sub_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
802 case iox2_pub_sub_open_or_create_error_e_C_INTERNAL_FAILURE:
804 case iox2_pub_sub_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
806 case iox2_pub_sub_open_or_create_error_e_C_HANGS_IN_CREATION:
808 case iox2_pub_sub_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
810 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
812 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
814 case iox2_pub_sub_open_or_create_error_e_C_INVALID_TYPE_DEFINITION:
816 case iox2_pub_sub_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
818 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
820
821 case iox2_pub_sub_open_or_create_error_e_SYSTEM_IN_FLUX:
823 }
824
826}
827
828template <>
830 const auto error = static_cast<iox2_pub_sub_open_or_create_error_e>(value);
831 switch (error) {
832 case iox2_pub_sub_open_or_create_error_e_O_INTERRUPT:
834 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_EXIST:
836 case iox2_pub_sub_open_or_create_error_e_O_INTERNAL_FAILURE:
838 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_TYPES:
840 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
842 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
844 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_BUFFER_SIZE:
846 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_HISTORY_SIZE:
848 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_SUBSCRIBER_BORROWED_SAMPLES:
850 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_PUBLISHERS:
852 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SUBSCRIBERS:
854 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
856 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR:
858 case iox2_pub_sub_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
860 case iox2_pub_sub_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
862 case iox2_pub_sub_open_or_create_error_e_O_HANGS_IN_CREATION:
864 case iox2_pub_sub_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
866 case iox2_pub_sub_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
868 case iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
870 case iox2_pub_sub_open_or_create_error_e_O_VERSION_MISMATCH:
872 case iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
874 case iox2_pub_sub_open_or_create_error_e_O_INVALID_TYPE_DEFINITION:
876 case iox2_pub_sub_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
878
879 // NOLINTBEGIN(bugprone-branch-clone) ignored so that enum changes are detected as a compiler warning and not cause a panic with IOX2_UNREACHABLE
880 case iox2_pub_sub_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
882 case iox2_pub_sub_open_or_create_error_e_C_SUBSCRIBER_BUFFER_MUST_BE_LARGER_THAN_HISTORY_SIZE:
884 case iox2_pub_sub_open_or_create_error_e_C_ALREADY_EXISTS:
886 case iox2_pub_sub_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
888 case iox2_pub_sub_open_or_create_error_e_C_INTERNAL_FAILURE:
890 case iox2_pub_sub_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
892 case iox2_pub_sub_open_or_create_error_e_C_HANGS_IN_CREATION:
894 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
896 case iox2_pub_sub_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
898 case iox2_pub_sub_open_or_create_error_e_C_INTERRUPT:
900 case iox2_pub_sub_open_or_create_error_e_SYSTEM_IN_FLUX:
902 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
904 case iox2_pub_sub_open_or_create_error_e_C_INVALID_TYPE_DEFINITION:
906 case iox2_pub_sub_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
908 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
910
911 // NOLINTEND(bugprone-branch-clone)
912 }
914}
915
916template <>
918 const iox2::PublishSubscribeOpenError value) noexcept -> iox2_pub_sub_open_or_create_error_e {
919 switch (value) {
921 return iox2_pub_sub_open_or_create_error_e_O_INTERRUPT;
923 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_EXIST;
925 return iox2_pub_sub_open_or_create_error_e_O_INTERNAL_FAILURE;
927 return iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_TYPES;
929 return iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN;
931 return iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES;
933 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_BUFFER_SIZE;
935 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_HISTORY_SIZE;
937 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_SUBSCRIBER_BORROWED_SAMPLES;
939 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_PUBLISHERS;
941 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SUBSCRIBERS;
943 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES;
945 return iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR;
947 return iox2_pub_sub_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS;
949 return iox2_pub_sub_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE;
951 return iox2_pub_sub_open_or_create_error_e_O_HANGS_IN_CREATION;
953 return iox2_pub_sub_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES;
955 return iox2_pub_sub_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION;
957 return iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG;
959 return iox2_pub_sub_open_or_create_error_e_O_VERSION_MISMATCH;
961 return iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION;
963 return iox2_pub_sub_open_or_create_error_e_O_INVALID_TYPE_DEFINITION;
965 return iox2_pub_sub_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE;
966 }
967
969}
970
971template <>
973 -> const char* {
974 return iox2_pub_sub_open_or_create_error_string(iox2::bb::into<iox2_pub_sub_open_or_create_error_e>(value));
975}
976
977template <>
978constexpr auto from<int, iox2::PublishSubscribeCreateError>(const int value) noexcept
980 const auto error = static_cast<iox2_pub_sub_open_or_create_error_e>(value);
981 switch (error) {
982 case iox2_pub_sub_open_or_create_error_e_C_INTERRUPT:
984 case iox2_pub_sub_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
986 case iox2_pub_sub_open_or_create_error_e_C_SUBSCRIBER_BUFFER_MUST_BE_LARGER_THAN_HISTORY_SIZE:
988 case iox2_pub_sub_open_or_create_error_e_C_ALREADY_EXISTS:
990 case iox2_pub_sub_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
992 case iox2_pub_sub_open_or_create_error_e_C_INTERNAL_FAILURE:
994 case iox2_pub_sub_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
996 case iox2_pub_sub_open_or_create_error_e_C_HANGS_IN_CREATION:
998 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
1000 case iox2_pub_sub_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
1002 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
1004 case iox2_pub_sub_open_or_create_error_e_C_INVALID_TYPE_DEFINITION:
1006 case iox2_pub_sub_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
1008 case iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
1010
1011 // NOLINTBEGIN(bugprone-branch-clone) ignored so that enum changes are detected as a compiler warning and not cause a panic with IOX2_UNREACHABLE
1012 case iox2_pub_sub_open_or_create_error_e_SYSTEM_IN_FLUX:
1014 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_EXIST:
1016 case iox2_pub_sub_open_or_create_error_e_O_INTERNAL_FAILURE:
1018 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_TYPES:
1020 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
1022 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
1024 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_BUFFER_SIZE:
1026 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_HISTORY_SIZE:
1028 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_SUBSCRIBER_BORROWED_SAMPLES:
1030 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_PUBLISHERS:
1032 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SUBSCRIBERS:
1034 case iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
1036 case iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR:
1038 case iox2_pub_sub_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
1040 case iox2_pub_sub_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
1042 case iox2_pub_sub_open_or_create_error_e_O_HANGS_IN_CREATION:
1044 case iox2_pub_sub_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
1046 case iox2_pub_sub_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
1048 case iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
1050 case iox2_pub_sub_open_or_create_error_e_O_VERSION_MISMATCH:
1052 case iox2_pub_sub_open_or_create_error_e_O_INTERRUPT:
1054 case iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
1056 case iox2_pub_sub_open_or_create_error_e_O_INVALID_TYPE_DEFINITION:
1058 case iox2_pub_sub_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
1060 // NOLINTEND(bugprone-branch-clone)
1061 }
1063}
1064
1065template <>
1067 const iox2::PublishSubscribeCreateError value) noexcept -> iox2_pub_sub_open_or_create_error_e {
1068 switch (value) {
1070 return iox2_pub_sub_open_or_create_error_e_C_INTERRUPT;
1072 return iox2_pub_sub_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE;
1074 return iox2_pub_sub_open_or_create_error_e_C_SUBSCRIBER_BUFFER_MUST_BE_LARGER_THAN_HISTORY_SIZE;
1076 return iox2_pub_sub_open_or_create_error_e_C_ALREADY_EXISTS;
1078 return iox2_pub_sub_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS;
1080 return iox2_pub_sub_open_or_create_error_e_C_INTERNAL_FAILURE;
1082 return iox2_pub_sub_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE;
1084 return iox2_pub_sub_open_or_create_error_e_C_HANGS_IN_CREATION;
1086 return iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG;
1088 return iox2_pub_sub_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED;
1090 return iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION;
1092 return iox2_pub_sub_open_or_create_error_e_C_INVALID_TYPE_DEFINITION;
1094 return iox2_pub_sub_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE;
1096 return iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID;
1097 }
1098
1100}
1101
1102template <>
1104 -> const char* {
1105 return iox2_pub_sub_open_or_create_error_string(iox2::bb::into<iox2_pub_sub_open_or_create_error_e>(value));
1106}
1107
1108template <>
1110 const iox2::PublishSubscribeOpenOrCreateError value) noexcept -> iox2_pub_sub_open_or_create_error_e {
1111 switch (value) {
1113 return iox2_pub_sub_open_or_create_error_e_O_INTERRUPT;
1115 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_EXIST;
1117 return iox2_pub_sub_open_or_create_error_e_O_INTERNAL_FAILURE;
1119 return iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_TYPES;
1121 return iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN;
1123 return iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES;
1125 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_BUFFER_SIZE;
1127 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_HISTORY_SIZE;
1129 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_MIN_SUBSCRIBER_BORROWED_SAMPLES;
1131 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_PUBLISHERS;
1133 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SUBSCRIBERS;
1135 return iox2_pub_sub_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES;
1137 return iox2_pub_sub_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR;
1139 return iox2_pub_sub_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS;
1141 return iox2_pub_sub_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE;
1143 return iox2_pub_sub_open_or_create_error_e_O_HANGS_IN_CREATION;
1145 return iox2_pub_sub_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES;
1147 return iox2_pub_sub_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION;
1149 return iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG;
1151 return iox2_pub_sub_open_or_create_error_e_O_VERSION_MISMATCH;
1153 return iox2_pub_sub_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION;
1155 return iox2_pub_sub_open_or_create_error_e_O_INVALID_TYPE_DEFINITION;
1157 return iox2_pub_sub_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE;
1158
1160 return iox2_pub_sub_open_or_create_error_e_SYSTEM_IN_FLUX;
1161
1163 return iox2_pub_sub_open_or_create_error_e_C_INTERRUPT;
1165 return iox2_pub_sub_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE;
1167 return iox2_pub_sub_open_or_create_error_e_C_SUBSCRIBER_BUFFER_MUST_BE_LARGER_THAN_HISTORY_SIZE;
1169 return iox2_pub_sub_open_or_create_error_e_C_ALREADY_EXISTS;
1171 return iox2_pub_sub_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS;
1173 return iox2_pub_sub_open_or_create_error_e_C_INTERNAL_FAILURE;
1175 return iox2_pub_sub_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE;
1177 return iox2_pub_sub_open_or_create_error_e_C_HANGS_IN_CREATION;
1179 return iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG;
1181 return iox2_pub_sub_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED;
1183 return iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION;
1185 return iox2_pub_sub_open_or_create_error_e_C_INVALID_TYPE_DEFINITION;
1187 return iox2_pub_sub_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE;
1189 return iox2_pub_sub_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID;
1190 }
1191
1193}
1194
1195template <>
1196inline auto
1198 -> const char* {
1199 return iox2_pub_sub_open_or_create_error_string(iox2::bb::into<iox2_pub_sub_open_or_create_error_e>(value));
1200}
1201
1202template <>
1203constexpr auto from<int, iox2::RequestResponseCreateError>(const int value) noexcept
1205 const auto error = static_cast<iox2_request_response_open_or_create_error_e>(value);
1206 switch (error) {
1207 case iox2_request_response_open_or_create_error_e_C_INTERRUPT:
1209 case iox2_request_response_open_or_create_error_e_C_ALREADY_EXISTS:
1211 case iox2_request_response_open_or_create_error_e_C_INTERNAL_FAILURE:
1213 case iox2_request_response_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
1215 case iox2_request_response_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
1217 case iox2_request_response_open_or_create_error_e_C_HANGS_IN_CREATION:
1219 case iox2_request_response_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
1221 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
1223 case iox2_request_response_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
1225 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
1227 case iox2_request_response_open_or_create_error_e_C_INVALID_TYPE_DEFINITION:
1229 case iox2_request_response_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
1231 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
1233
1234 // NOLINTBEGIN(bugprone-branch-clone) ignored so that enum changes are detected as a compiler warning and not cause a panic with IOX2_UNREACHABLE
1235 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_EXIST:
1237 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENT_REQUEST_LOANS:
1239 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_ACTIVE_REQUESTS_PER_CLIENT:
1241 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_RESPONSE_BUFFER_SIZE:
1243 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SERVERS:
1245 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENTS:
1247 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
1249 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_BORROWED_RESPONSES_PER_PENDING_RESPONSE:
1251 case iox2_request_response_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
1253 case iox2_request_response_open_or_create_error_e_O_HANGS_IN_CREATION:
1255 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_REQUEST_OR_RESPONSE_TYPE:
1257 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
1259 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
1261 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_REQUESTS:
1263 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_RESPONSES:
1265 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_BEHAVIOR_FOR_FIRE_AND_FORGET_REQUESTS:
1267 case iox2_request_response_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
1269 case iox2_request_response_open_or_create_error_e_O_INTERNAL_FAILURE:
1271 case iox2_request_response_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
1273 case iox2_request_response_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
1275 case iox2_request_response_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
1277 case iox2_request_response_open_or_create_error_e_O_INTERRUPT:
1279 case iox2_request_response_open_or_create_error_e_O_VERSION_MISMATCH:
1281 case iox2_request_response_open_or_create_error_e_SYSTEM_IN_FLUX:
1283 case iox2_request_response_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
1285 case iox2_request_response_open_or_create_error_e_O_INVALID_TYPE_DEFINITION:
1287 case iox2_request_response_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
1289
1290 // NOLINTEND(bugprone-branch-clone)
1291 }
1293}
1294
1295template <>
1297 const iox2::RequestResponseCreateError value) noexcept -> iox2_request_response_open_or_create_error_e {
1298 switch (value) {
1300 return iox2_request_response_open_or_create_error_e_C_INTERRUPT;
1302 return iox2_request_response_open_or_create_error_e_C_ALREADY_EXISTS;
1304 return iox2_request_response_open_or_create_error_e_C_INTERNAL_FAILURE;
1306 return iox2_request_response_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE;
1308 return iox2_request_response_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS;
1310 return iox2_request_response_open_or_create_error_e_C_HANGS_IN_CREATION;
1312 return iox2_request_response_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE;
1314 return iox2_request_response_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG;
1316 return iox2_request_response_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED;
1318 return iox2_request_response_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION;
1320 return iox2_request_response_open_or_create_error_e_C_INVALID_TYPE_DEFINITION;
1322 return iox2_request_response_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE;
1324 return iox2_request_response_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID;
1325 }
1326
1328}
1329
1330template <>
1332 -> const char* {
1333 return iox2_request_response_open_or_create_error_string(
1335}
1336
1337template <>
1339 const auto error = static_cast<iox2_request_response_open_or_create_error_e>(value);
1340 switch (error) {
1341 case iox2_request_response_open_or_create_error_e_O_INTERRUPT:
1343 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_EXIST:
1345 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENT_REQUEST_LOANS:
1347 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_ACTIVE_REQUESTS_PER_CLIENT:
1349 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_RESPONSE_BUFFER_SIZE:
1351 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SERVERS:
1353 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENTS:
1355 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
1357 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_BORROWED_RESPONSES_PER_PENDING_RESPONSE:
1359 case iox2_request_response_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
1361 case iox2_request_response_open_or_create_error_e_O_HANGS_IN_CREATION:
1363 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_REQUEST_OR_RESPONSE_TYPE:
1365 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
1367 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
1369 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_REQUESTS:
1371 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_RESPONSES:
1373 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_BEHAVIOR_FOR_FIRE_AND_FORGET_REQUESTS:
1375 case iox2_request_response_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
1377 case iox2_request_response_open_or_create_error_e_O_INTERNAL_FAILURE:
1379 case iox2_request_response_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
1381 case iox2_request_response_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
1383 case iox2_request_response_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
1385 case iox2_request_response_open_or_create_error_e_O_VERSION_MISMATCH:
1387 case iox2_request_response_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
1389 case iox2_request_response_open_or_create_error_e_O_INVALID_TYPE_DEFINITION:
1391 case iox2_request_response_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
1393
1394 // NOLINTBEGIN(bugprone-branch-clone) ignored so that enum changes are detected as a compiler warning and not cause a panic with IOX2_UNREACHABLE
1395 case iox2_request_response_open_or_create_error_e_SYSTEM_IN_FLUX:
1397 case iox2_request_response_open_or_create_error_e_C_ALREADY_EXISTS:
1399 case iox2_request_response_open_or_create_error_e_C_INTERNAL_FAILURE:
1401 case iox2_request_response_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
1403 case iox2_request_response_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
1405 case iox2_request_response_open_or_create_error_e_C_HANGS_IN_CREATION:
1407 case iox2_request_response_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
1409 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
1411 case iox2_request_response_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
1413 case iox2_request_response_open_or_create_error_e_C_INTERRUPT:
1415 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
1417 case iox2_request_response_open_or_create_error_e_C_INVALID_TYPE_DEFINITION:
1419 case iox2_request_response_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
1421 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
1423 // NOLINTEND(bugprone-branch-clone)
1424 }
1426}
1427
1428template <>
1430 const iox2::RequestResponseOpenError value) noexcept -> iox2_request_response_open_or_create_error_e {
1431 switch (value) {
1433 return iox2_request_response_open_or_create_error_e_O_INTERRUPT;
1435 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_EXIST;
1437 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENT_REQUEST_LOANS;
1439 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_ACTIVE_REQUESTS_PER_CLIENT;
1441 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_RESPONSE_BUFFER_SIZE;
1443 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SERVERS;
1445 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENTS;
1447 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES;
1449 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_BORROWED_RESPONSES_PER_PENDING_RESPONSE;
1451 return iox2_request_response_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES;
1453 return iox2_request_response_open_or_create_error_e_O_HANGS_IN_CREATION;
1455 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_REQUEST_OR_RESPONSE_TYPE;
1457 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES;
1459 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN;
1461 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_REQUESTS;
1463 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_RESPONSES;
1465 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_BEHAVIOR_FOR_FIRE_AND_FORGET_REQUESTS;
1467 return iox2_request_response_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS;
1469 return iox2_request_response_open_or_create_error_e_O_INTERNAL_FAILURE;
1471 return iox2_request_response_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION;
1473 return iox2_request_response_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE;
1475 return iox2_request_response_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG;
1477 return iox2_request_response_open_or_create_error_e_O_VERSION_MISMATCH;
1479 return iox2_request_response_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION;
1481 return iox2_request_response_open_or_create_error_e_O_INVALID_TYPE_DEFINITION;
1483 return iox2_request_response_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE;
1484 }
1485
1487}
1488
1489template <>
1491 -> const char* {
1492 return iox2_request_response_open_or_create_error_string(
1494}
1495
1496template <>
1497constexpr auto from<int, iox2::RequestResponseOpenOrCreateError>(const int value) noexcept
1499 const auto error = static_cast<iox2_request_response_open_or_create_error_e>(value);
1500 switch (error) {
1501 case iox2_request_response_open_or_create_error_e_O_INTERRUPT:
1503 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_EXIST:
1505 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENT_REQUEST_LOANS:
1507 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_ACTIVE_REQUESTS_PER_CLIENT:
1509 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_RESPONSE_BUFFER_SIZE:
1511 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SERVERS:
1513 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENTS:
1515 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
1517 case iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_BORROWED_RESPONSES_PER_PENDING_RESPONSE:
1518 return iox2::RequestResponseOpenOrCreateError::
1519 OpenDoesNotSupportRequestedAmountOfBorrowedResponsesPerPendingResponse;
1520 case iox2_request_response_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
1522 case iox2_request_response_open_or_create_error_e_O_HANGS_IN_CREATION:
1524 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_REQUEST_OR_RESPONSE_TYPE:
1526 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES:
1528 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
1530 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_REQUESTS:
1532 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_RESPONSES:
1534 case iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_BEHAVIOR_FOR_FIRE_AND_FORGET_REQUESTS:
1536 case iox2_request_response_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS:
1538 case iox2_request_response_open_or_create_error_e_O_INTERNAL_FAILURE:
1540 case iox2_request_response_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION:
1542 case iox2_request_response_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE:
1544 case iox2_request_response_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
1546 case iox2_request_response_open_or_create_error_e_O_VERSION_MISMATCH:
1548 case iox2_request_response_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
1550 case iox2_request_response_open_or_create_error_e_O_INVALID_TYPE_DEFINITION:
1552 case iox2_request_response_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
1554
1555 case iox2_request_response_open_or_create_error_e_C_INTERRUPT:
1557 case iox2_request_response_open_or_create_error_e_C_ALREADY_EXISTS:
1559 case iox2_request_response_open_or_create_error_e_C_INTERNAL_FAILURE:
1561 case iox2_request_response_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
1563 case iox2_request_response_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS:
1565 case iox2_request_response_open_or_create_error_e_C_HANGS_IN_CREATION:
1567 case iox2_request_response_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
1569 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
1571 case iox2_request_response_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
1573 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION:
1575 case iox2_request_response_open_or_create_error_e_C_INVALID_TYPE_DEFINITION:
1577 case iox2_request_response_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE:
1579 case iox2_request_response_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
1581
1582 case iox2_request_response_open_or_create_error_e_SYSTEM_IN_FLUX:
1584 }
1585
1587}
1588
1589template <>
1591 const iox2::RequestResponseOpenOrCreateError value) noexcept -> iox2_request_response_open_or_create_error_e {
1592 switch (value) {
1594 return iox2_request_response_open_or_create_error_e_O_INTERRUPT;
1596 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_EXIST;
1598 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENT_REQUEST_LOANS;
1600 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_ACTIVE_REQUESTS_PER_CLIENT;
1602 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_RESPONSE_BUFFER_SIZE;
1604 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_SERVERS;
1606 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_CLIENTS;
1608 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES;
1610 return iox2_request_response_open_or_create_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_BORROWED_RESPONSES_PER_PENDING_RESPONSE;
1612 return iox2_request_response_open_or_create_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES;
1614 return iox2_request_response_open_or_create_error_e_O_HANGS_IN_CREATION;
1616 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_REQUEST_OR_RESPONSE_TYPE;
1618 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_ATTRIBUTES;
1620 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN;
1622 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_REQUESTS;
1624 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_OVERFLOW_BEHAVIOR_FOR_RESPONSES;
1626 return iox2_request_response_open_or_create_error_e_O_INCOMPATIBLE_BEHAVIOR_FOR_FIRE_AND_FORGET_REQUESTS;
1628 return iox2_request_response_open_or_create_error_e_O_INSUFFICIENT_PERMISSIONS;
1630 return iox2_request_response_open_or_create_error_e_O_INTERNAL_FAILURE;
1632 return iox2_request_response_open_or_create_error_e_O_IS_MARKED_FOR_DESTRUCTION;
1634 return iox2_request_response_open_or_create_error_e_O_SERVICE_IN_CORRUPTED_STATE;
1636 return iox2_request_response_open_or_create_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG;
1638 return iox2_request_response_open_or_create_error_e_O_VERSION_MISMATCH;
1640 return iox2_request_response_open_or_create_error_e_O_UNABLE_TO_ACQUIRE_TYPE_DEFINITION;
1642 return iox2_request_response_open_or_create_error_e_O_INVALID_TYPE_DEFINITION;
1644 return iox2_request_response_open_or_create_error_e_O_TYPE_DEFINITION_HAS_NO_ROOT_TYPE;
1645
1647 return iox2_request_response_open_or_create_error_e_C_INTERRUPT;
1649 return iox2_request_response_open_or_create_error_e_C_ALREADY_EXISTS;
1651 return iox2_request_response_open_or_create_error_e_C_INTERNAL_FAILURE;
1653 return iox2_request_response_open_or_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE;
1655 return iox2_request_response_open_or_create_error_e_C_INSUFFICIENT_PERMISSIONS;
1657 return iox2_request_response_open_or_create_error_e_C_HANGS_IN_CREATION;
1659 return iox2_request_response_open_or_create_error_e_C_SERVICE_IN_CORRUPTED_STATE;
1661 return iox2_request_response_open_or_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG;
1663 return iox2_request_response_open_or_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED;
1665 return iox2_request_response_open_or_create_error_e_C_UNABLE_TO_ACQUIRE_TYPE_DEFINITION;
1667 return iox2_request_response_open_or_create_error_e_C_INVALID_TYPE_DEFINITION;
1669 return iox2_request_response_open_or_create_error_e_C_TYPE_DEFINITION_HAS_NO_ROOT_TYPE;
1671 return iox2_request_response_open_or_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID;
1672
1673
1675 return iox2_request_response_open_or_create_error_e_SYSTEM_IN_FLUX;
1676 }
1677
1679}
1680
1681template <>
1682inline auto
1684 -> const char* {
1685 return iox2_request_response_open_or_create_error_string(
1687}
1688
1689template <>
1690constexpr auto from<int, iox2::BlackboardCreateError>(const int value) noexcept -> iox2::BlackboardCreateError {
1691 const auto error = static_cast<iox2_blackboard_create_error_e>(value);
1692 switch (error) {
1693 case iox2_blackboard_create_error_e_C_INTERRUPT:
1695 case iox2_blackboard_create_error_e_C_ALREADY_EXISTS:
1697 case iox2_blackboard_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE:
1699 case iox2_blackboard_create_error_e_C_INTERNAL_FAILURE:
1701 case iox2_blackboard_create_error_e_C_INSUFFICIENT_PERMISSIONS:
1703 case iox2_blackboard_create_error_e_C_SERVICE_IN_CORRUPTED_STATE:
1705 case iox2_blackboard_create_error_e_C_HANGS_IN_CREATION:
1707 case iox2_blackboard_create_error_e_C_NO_ENTRIES_PROVIDED:
1709 case iox2_blackboard_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG:
1711 case iox2_blackboard_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED:
1713 case iox2_blackboard_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID:
1715 }
1716
1718}
1719
1720template <>
1721constexpr auto
1723 -> iox2_blackboard_create_error_e {
1724 switch (value) {
1726 return iox2_blackboard_create_error_e_C_INTERRUPT;
1728 return iox2_blackboard_create_error_e_C_ALREADY_EXISTS;
1730 return iox2_blackboard_create_error_e_C_IS_BEING_CREATED_BY_ANOTHER_INSTANCE;
1732 return iox2_blackboard_create_error_e_C_INTERNAL_FAILURE;
1734 return iox2_blackboard_create_error_e_C_INSUFFICIENT_PERMISSIONS;
1736 return iox2_blackboard_create_error_e_C_SERVICE_IN_CORRUPTED_STATE;
1738 return iox2_blackboard_create_error_e_C_HANGS_IN_CREATION;
1740 return iox2_blackboard_create_error_e_C_NO_ENTRIES_PROVIDED;
1742 return iox2_blackboard_create_error_e_C_UNABLE_TO_CREATE_SERVICE_TAG;
1744 return iox2_blackboard_create_error_e_C_SERVICE_CONFIG_COULD_NOT_BE_CREATED;
1746 return iox2_blackboard_create_error_e_C_UNABLE_TO_GENERATE_UNIQUE_SERVICE_ID;
1747 }
1748
1750}
1751
1752template <>
1754 char* {
1755 return iox2_blackboard_create_error_string(iox2::bb::into<iox2_blackboard_create_error_e>(value));
1756}
1757
1758template <>
1759constexpr auto from<int, iox2::BlackboardOpenError>(const int value) noexcept -> iox2::BlackboardOpenError {
1760 const auto error = static_cast<iox2_blackboard_open_error_e>(value);
1761 switch (error) {
1762 case iox2_blackboard_open_error_e_O_INTERRUPT:
1764 case iox2_blackboard_open_error_e_O_DOES_NOT_EXIST:
1766 case iox2_blackboard_open_error_e_O_SERVICE_IN_CORRUPTED_STATE:
1768 case iox2_blackboard_open_error_e_O_INCOMPATIBLE_KEYS:
1770 case iox2_blackboard_open_error_e_O_INTERNAL_FAILURE:
1772 case iox2_blackboard_open_error_e_O_INCOMPATIBLE_ATTRIBUTES:
1774 case iox2_blackboard_open_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN:
1776 case iox2_blackboard_open_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_READERS:
1778 case iox2_blackboard_open_error_e_O_INSUFFICIENT_PERMISSIONS:
1780 case iox2_blackboard_open_error_e_O_HANGS_IN_CREATION:
1782 case iox2_blackboard_open_error_e_O_IS_MARKED_FOR_DESTRUCTION:
1784 case iox2_blackboard_open_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES:
1786 case iox2_blackboard_open_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES:
1788 case iox2_blackboard_open_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG:
1790 case iox2_blackboard_open_error_e_O_VERSION_MISMATCH:
1792 }
1793
1795}
1796
1797template <>
1798constexpr auto
1800 -> iox2_blackboard_open_error_e {
1801 switch (value) {
1803 return iox2_blackboard_open_error_e_O_INTERRUPT;
1805 return iox2_blackboard_open_error_e_O_DOES_NOT_EXIST;
1807 return iox2_blackboard_open_error_e_O_SERVICE_IN_CORRUPTED_STATE;
1809 return iox2_blackboard_open_error_e_O_INCOMPATIBLE_KEYS;
1811 return iox2_blackboard_open_error_e_O_INTERNAL_FAILURE;
1813 return iox2_blackboard_open_error_e_O_INCOMPATIBLE_ATTRIBUTES;
1815 return iox2_blackboard_open_error_e_O_INCOMPATIBLE_MESSAGING_PATTERN;
1817 return iox2_blackboard_open_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_READERS;
1819 return iox2_blackboard_open_error_e_O_INSUFFICIENT_PERMISSIONS;
1821 return iox2_blackboard_open_error_e_O_HANGS_IN_CREATION;
1823 return iox2_blackboard_open_error_e_O_IS_MARKED_FOR_DESTRUCTION;
1825 return iox2_blackboard_open_error_e_O_EXCEEDS_MAX_NUMBER_OF_NODES;
1827 return iox2_blackboard_open_error_e_O_DOES_NOT_SUPPORT_REQUESTED_AMOUNT_OF_NODES;
1829 return iox2_blackboard_open_error_e_O_UNABLE_TO_CREATE_SERVICE_TAG;
1831 return iox2_blackboard_open_error_e_O_VERSION_MISMATCH;
1832 }
1833
1835}
1836
1837template <>
1839 char* {
1840 return iox2_blackboard_open_error_string(iox2::bb::into<iox2_blackboard_open_error_e>(value));
1841}
1842
1843template <>
1844constexpr auto from<int, iox2::WriterCreateError>(const int value) noexcept -> iox2::WriterCreateError {
1845 const auto error = static_cast<iox2_writer_create_error_e>(value);
1846 switch (error) {
1847 case iox2_writer_create_error_e_EXCEEDS_MAX_SUPPORTED_WRITERS:
1849 case iox2_writer_create_error_e_INTERNAL_FAILURE:
1851 case iox2_writer_create_error_e_FAILED_TO_DEPLOY_THREADSAFETY_POLICY:
1853 case iox2_writer_create_error_e_UNABLE_TO_CREATE_PORT_TAG:
1855 case iox2_writer_create_error_e_UNABLE_TO_GENERATE_UNIQUE_WRITER_ID:
1857 }
1858
1860}
1861
1862template <>
1864 -> iox2_writer_create_error_e {
1865 switch (value) {
1867 return iox2_writer_create_error_e_EXCEEDS_MAX_SUPPORTED_WRITERS;
1869 return iox2_writer_create_error_e_INTERNAL_FAILURE;
1871 return iox2_writer_create_error_e_FAILED_TO_DEPLOY_THREADSAFETY_POLICY;
1873 return iox2_writer_create_error_e_UNABLE_TO_CREATE_PORT_TAG;
1875 return iox2_writer_create_error_e_UNABLE_TO_GENERATE_UNIQUE_WRITER_ID;
1876 }
1877
1879}
1880
1881template <>
1882inline auto from<iox2::WriterCreateError, const char*>(const iox2::WriterCreateError value) noexcept -> const char* {
1883 return iox2_writer_create_error_string(iox2::bb::into<iox2_writer_create_error_e>(value));
1884}
1885
1886template <>
1887constexpr auto from<int, iox2::EntryHandleMutError>(const int value) noexcept -> iox2::EntryHandleMutError {
1888 const auto error = static_cast<iox2_entry_handle_mut_error_e>(value);
1889 switch (error) {
1890 case iox2_entry_handle_mut_error_e_ENTRY_DOES_NOT_EXIST:
1892 case iox2_entry_handle_mut_error_e_HANDLE_ALREADY_EXISTS:
1894 }
1895
1897}
1898
1899template <>
1900constexpr auto
1902 -> iox2_entry_handle_mut_error_e {
1903 switch (value) {
1905 return iox2_entry_handle_mut_error_e_ENTRY_DOES_NOT_EXIST;
1907 return iox2_entry_handle_mut_error_e_HANDLE_ALREADY_EXISTS;
1908 }
1909
1911}
1912
1913template <>
1915 char* {
1916 return iox2_entry_handle_mut_error_string(iox2::bb::into<iox2_entry_handle_mut_error_e>(value));
1917}
1918
1919template <>
1920constexpr auto from<int, iox2::ReaderCreateError>(const int value) noexcept -> iox2::ReaderCreateError {
1921 const auto error = static_cast<iox2_reader_create_error_e>(value);
1922 switch (error) {
1923 case iox2_reader_create_error_e_EXCEEDS_MAX_SUPPORTED_READERS:
1925 case iox2_reader_create_error_e_FAILED_TO_DEPLOY_THREADSAFETY_POLICY:
1927 case iox2_reader_create_error_e_UNABLE_TO_CREATE_PORT_TAG:
1929 case iox2_reader_create_error_e_UNABLE_TO_GENERATE_UNIQUE_READER_ID:
1931 }
1932
1934}
1935
1936template <>
1938 -> iox2_reader_create_error_e {
1939 switch (value) {
1941 return iox2_reader_create_error_e_EXCEEDS_MAX_SUPPORTED_READERS;
1943 return iox2_reader_create_error_e_FAILED_TO_DEPLOY_THREADSAFETY_POLICY;
1945 return iox2_reader_create_error_e_UNABLE_TO_CREATE_PORT_TAG;
1947 return iox2_reader_create_error_e_UNABLE_TO_GENERATE_UNIQUE_READER_ID;
1948 }
1949
1951}
1952
1953template <>
1954inline auto from<iox2::ReaderCreateError, const char*>(const iox2::ReaderCreateError value) noexcept -> const char* {
1955 return iox2_reader_create_error_string(iox2::bb::into<iox2_reader_create_error_e>(value));
1956}
1957
1958template <>
1959constexpr auto from<int, iox2::EntryHandleError>(const int value) noexcept -> iox2::EntryHandleError {
1960 const auto error = static_cast<iox2_entry_handle_error_e>(value);
1961 switch (error) {
1962 case iox2_entry_handle_error_e_ENTRY_DOES_NOT_EXIST:
1964 }
1965
1967}
1968
1969template <>
1971 -> iox2_entry_handle_error_e {
1972 switch (value) {
1974 return iox2_entry_handle_error_e_ENTRY_DOES_NOT_EXIST;
1975 }
1976
1978}
1979
1980template <>
1981inline auto from<iox2::EntryHandleError, const char*>(const iox2::EntryHandleError value) noexcept -> const char* {
1982 return iox2_entry_handle_error_string(iox2::bb::into<iox2_entry_handle_error_e>(value));
1983}
1984
1985template <>
1986constexpr auto from<int, iox2::ClientCreateError>(const int value) noexcept -> iox2::ClientCreateError {
1987 const auto error = static_cast<iox2_client_create_error_e>(value);
1988 switch (error) {
1989 case iox2_client_create_error_e_EXCEEDS_MAX_SUPPORTED_CLIENTS:
1991 case iox2_client_create_error_e_UNABLE_TO_CREATE_DATA_SEGMENT:
1993 case iox2_client_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY:
1995 case iox2_client_create_error_e_UNABLE_TO_CREATE_PORT_TAG:
1997 case iox2_client_create_error_e_MAX_ACTIVE_REQUESTS_EXCEEDS_MAX_SUPPORTED_ACTIVE_REQUESTS_OF_SERVICE:
1999 case iox2_client_create_error_e_UNABLE_TO_GENERATE_UNIQUE_CLIENT_ID:
2001 }
2002
2004}
2005
2006template <>
2008 -> iox2_client_create_error_e {
2009 switch (value) {
2011 return iox2_client_create_error_e_EXCEEDS_MAX_SUPPORTED_CLIENTS;
2013 return iox2_client_create_error_e_UNABLE_TO_CREATE_DATA_SEGMENT;
2015 return iox2_client_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY;
2017 return iox2_client_create_error_e_UNABLE_TO_CREATE_PORT_TAG;
2019 return iox2_client_create_error_e_MAX_ACTIVE_REQUESTS_EXCEEDS_MAX_SUPPORTED_ACTIVE_REQUESTS_OF_SERVICE;
2021 return iox2_client_create_error_e_UNABLE_TO_GENERATE_UNIQUE_CLIENT_ID;
2022 }
2023
2025}
2026
2027template <>
2028inline auto from<iox2::ClientCreateError, const char*>(const iox2::ClientCreateError value) noexcept -> const char* {
2029 return iox2_client_create_error_string(iox2::bb::into<iox2_client_create_error_e>(value));
2030}
2031
2032template <>
2033constexpr auto from<int, iox2::ServerCreateError>(const int value) noexcept -> iox2::ServerCreateError {
2034 const auto error = static_cast<iox2_server_create_error_e>(value);
2035 switch (error) {
2036 case iox2_server_create_error_e_EXCEEDS_MAX_SUPPORTED_SERVERS:
2038 case iox2_server_create_error_e_UNABLE_TO_CREATE_DATA_SEGMENT:
2040 case iox2_server_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY:
2042 case iox2_server_create_error_e_UNABLE_TO_CREATE_PORT_TAG:
2044 case iox2_server_create_error_e_UNABLE_TO_GENERATE_UNIQUE_SERVER_ID:
2046 }
2047
2049}
2050
2051template <>
2053 -> iox2_server_create_error_e {
2054 switch (value) {
2056 return iox2_server_create_error_e_EXCEEDS_MAX_SUPPORTED_SERVERS;
2058 return iox2_server_create_error_e_UNABLE_TO_CREATE_DATA_SEGMENT;
2060 return iox2_server_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY;
2062 return iox2_server_create_error_e_UNABLE_TO_CREATE_PORT_TAG;
2064 return iox2_server_create_error_e_UNABLE_TO_GENERATE_UNIQUE_SERVER_ID;
2065 }
2066
2068}
2069
2070template <>
2071inline auto from<iox2::ServerCreateError, const char*>(const iox2::ServerCreateError value) noexcept -> const char* {
2072 return iox2_server_create_error_string(iox2::bb::into<iox2_server_create_error_e>(value));
2073}
2074
2075template <>
2076constexpr auto from<int, iox2::NotifierCreateError>(const int value) noexcept -> iox2::NotifierCreateError {
2077 const auto error = static_cast<iox2_notifier_create_error_e>(value);
2078 switch (error) {
2079 case iox2_notifier_create_error_e_EXCEEDS_MAX_SUPPORTED_NOTIFIERS:
2081 case iox2_notifier_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY:
2083 case iox2_notifier_create_error_e_UNABLE_TO_CREATE_PORT_TAG:
2085 case iox2_notifier_create_error_e_UNABLE_TO_GENERATE_UNIQUE_NOTIFIER_ID:
2087 }
2088
2090}
2091
2092template <>
2093constexpr auto
2095 -> iox2_notifier_create_error_e {
2096 switch (value) {
2098 return iox2_notifier_create_error_e_EXCEEDS_MAX_SUPPORTED_NOTIFIERS;
2100 return iox2_notifier_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY;
2102 return iox2_notifier_create_error_e_UNABLE_TO_CREATE_PORT_TAG;
2104 return iox2_notifier_create_error_e_UNABLE_TO_GENERATE_UNIQUE_NOTIFIER_ID;
2105 }
2106
2108}
2109
2110template <>
2112 char* {
2113 return iox2_notifier_create_error_string(iox2::bb::into<iox2_notifier_create_error_e>(value));
2114}
2115
2116template <>
2117constexpr auto from<int, iox2::ListenerCreateError>(const int value) noexcept -> iox2::ListenerCreateError {
2118 const auto error = static_cast<iox2_listener_create_error_e>(value);
2119 switch (error) {
2120 case iox2_listener_create_error_e_EXCEEDS_MAX_SUPPORTED_LISTENERS:
2122 case iox2_listener_create_error_e_RESOURCE_CREATION_FAILED:
2124 case iox2_listener_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY:
2126 case iox2_listener_create_error_e_UNABLE_TO_CREATE_PORT_TAG:
2128 case iox2_listener_create_error_e_UNABLE_TO_GENERATE_UNIQUE_LISTENER_ID:
2130 }
2131
2133}
2134
2135template <>
2136constexpr auto
2138 -> iox2_listener_create_error_e {
2139 switch (value) {
2141 return iox2_listener_create_error_e_EXCEEDS_MAX_SUPPORTED_LISTENERS;
2143 return iox2_listener_create_error_e_RESOURCE_CREATION_FAILED;
2145 return iox2_listener_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY;
2147 return iox2_listener_create_error_e_UNABLE_TO_CREATE_PORT_TAG;
2149 return iox2_listener_create_error_e_UNABLE_TO_GENERATE_UNIQUE_LISTENER_ID;
2150 }
2151
2153}
2154
2155template <>
2157 char* {
2158 return iox2_listener_create_error_string(iox2::bb::into<iox2_listener_create_error_e>(value));
2159}
2160
2161template <>
2162constexpr auto from<int, iox2::NotifierNotifyError>(const int value) noexcept -> iox2::NotifierNotifyError {
2163 const auto error = static_cast<iox2_notifier_notify_error_e>(value);
2164 switch (error) {
2165 case iox2_notifier_notify_error_e_EVENT_ID_OUT_OF_BOUNDS:
2167 case iox2_notifier_notify_error_e_MISSED_DEADLINE:
2169 case iox2_notifier_notify_error_e_UNABLE_TO_ACQUIRE_ELAPSED_TIME:
2171 case iox2_notifier_notify_error_e_INVALID_LISTENER_KEY:
2173 }
2174
2176}
2177
2178template <>
2179constexpr auto
2181 -> iox2_notifier_notify_error_e {
2182 switch (value) {
2184 return iox2_notifier_notify_error_e_EVENT_ID_OUT_OF_BOUNDS;
2186 return iox2_notifier_notify_error_e_MISSED_DEADLINE;
2188 return iox2_notifier_notify_error_e_UNABLE_TO_ACQUIRE_ELAPSED_TIME;
2190 return iox2_notifier_notify_error_e_INVALID_LISTENER_KEY;
2191 }
2192
2194}
2195
2196template <>
2198 char* {
2199 return iox2_notifier_notify_error_string(iox2::bb::into<iox2_notifier_notify_error_e>(value));
2200}
2201
2202template <>
2203constexpr auto from<int, iox2::ListenerWaitError>(const int value) noexcept -> iox2::ListenerWaitError {
2204 const auto error = static_cast<iox2_listener_wait_error_e>(value);
2205 switch (error) {
2206 case iox2_listener_wait_error_e_CONTRACT_VIOLATION:
2208 case iox2_listener_wait_error_e_INTERRUPT_SIGNAL:
2210 case iox2_listener_wait_error_e_INTERNAL_FAILURE:
2212 case iox2_listener_wait_error_e_CLOCK_SCHEDULE_CAPACITY_EXCEEDED:
2214 case iox2_listener_wait_error_e_NOTIFICATION_ERROR:
2216 }
2217
2219}
2220
2221template <>
2223 -> iox2_listener_wait_error_e {
2224 switch (value) {
2226 return iox2_listener_wait_error_e_CONTRACT_VIOLATION;
2228 return iox2_listener_wait_error_e_INTERRUPT_SIGNAL;
2230 return iox2_listener_wait_error_e_INTERNAL_FAILURE;
2232 return iox2_listener_wait_error_e_CLOCK_SCHEDULE_CAPACITY_EXCEEDED;
2234 return iox2_listener_wait_error_e_NOTIFICATION_ERROR;
2235 }
2236
2238}
2239
2240template <>
2241inline auto from<iox2::ListenerWaitError, const char*>(const iox2::ListenerWaitError value) noexcept -> const char* {
2242 return iox2_listener_wait_error_string(iox2::bb::into<iox2_listener_wait_error_e>(value));
2243}
2244
2245template <>
2246constexpr auto from<int, iox2::PublisherCreateError>(const int value) noexcept -> iox2::PublisherCreateError {
2247 const auto error = static_cast<iox2_publisher_create_error_e>(value);
2248 switch (error) {
2249 case iox2_publisher_create_error_e_EXCEEDS_MAX_SUPPORTED_PUBLISHERS:
2251 case iox2_publisher_create_error_e_UNABLE_TO_CREATE_DATA_SEGMENT:
2253 case iox2_publisher_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY:
2255 case iox2_publisher_create_error_e_UNABLE_TO_CREATE_PORT_TAG:
2257 case iox2_publisher_create_error_e_UNABLE_TO_GENERATE_UNIQUE_PUBLISHER_ID:
2259 }
2260
2262}
2263
2264template <>
2265constexpr auto
2267 -> iox2_publisher_create_error_e {
2268 switch (value) {
2270 return iox2_publisher_create_error_e_EXCEEDS_MAX_SUPPORTED_PUBLISHERS;
2272 return iox2_publisher_create_error_e_UNABLE_TO_CREATE_DATA_SEGMENT;
2274 return iox2_publisher_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY;
2276 return iox2_publisher_create_error_e_UNABLE_TO_CREATE_PORT_TAG;
2278 return iox2_publisher_create_error_e_UNABLE_TO_GENERATE_UNIQUE_PUBLISHER_ID;
2279 }
2280
2282}
2283
2284template <>
2286 char* {
2287 return iox2_publisher_create_error_string(iox2::bb::into<iox2_publisher_create_error_e>(value));
2288}
2289
2290template <>
2291constexpr auto from<int, iox2::SubscriberCreateError>(const int value) noexcept -> iox2::SubscriberCreateError {
2292 const auto error = static_cast<iox2_subscriber_create_error_e>(value);
2293 switch (error) {
2294 case iox2_subscriber_create_error_e_BUFFER_SIZE_EXCEEDS_MAX_SUPPORTED_BUFFER_SIZE_OF_SERVICE:
2296 case iox2_subscriber_create_error_e_EXCEEDS_MAX_SUPPORTED_SUBSCRIBERS:
2298 case iox2_subscriber_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY:
2300 case iox2_subscriber_create_error_e_UNABLE_TO_CREATE_PORT_TAG:
2302 case iox2_subscriber_create_error_e_HISTORY_REQUEST_EXCEEDS_HISTORY_SIZE_OF_SERVICE:
2304 case iox2_subscriber_create_error_e_HISTORY_REQUEST_EXCEEDS_BUFFER_SIZE_OF_SUBSCRIBER:
2306 case iox2_subscriber_create_error_e_UNABLE_TO_GENERATE_UNIQUE_SUBSCRIBER_ID:
2308 }
2309
2311}
2312
2313template <>
2314constexpr auto
2316 -> iox2_subscriber_create_error_e {
2317 switch (value) {
2319 return iox2_subscriber_create_error_e_BUFFER_SIZE_EXCEEDS_MAX_SUPPORTED_BUFFER_SIZE_OF_SERVICE;
2321 return iox2_subscriber_create_error_e_EXCEEDS_MAX_SUPPORTED_SUBSCRIBERS;
2323 return iox2_subscriber_create_error_e_FAILED_TO_DEPLOY_THREAD_SAFETY_POLICY;
2325 return iox2_subscriber_create_error_e_UNABLE_TO_CREATE_PORT_TAG;
2327 return iox2_subscriber_create_error_e_HISTORY_REQUEST_EXCEEDS_HISTORY_SIZE_OF_SERVICE;
2329 return iox2_subscriber_create_error_e_HISTORY_REQUEST_EXCEEDS_BUFFER_SIZE_OF_SUBSCRIBER;
2331 return iox2_subscriber_create_error_e_UNABLE_TO_GENERATE_UNIQUE_SUBSCRIBER_ID;
2332 }
2333
2335}
2336
2337template <>
2339 char* {
2340 return iox2_subscriber_create_error_string(iox2::bb::into<iox2_subscriber_create_error_e>(value));
2341}
2342
2343template <>
2344constexpr auto from<int, iox2::SendError>(const int value) noexcept -> iox2::SendError {
2345 const auto error = static_cast<iox2_send_error_e>(value);
2346 switch (error) {
2347 case iox2_send_error_e_CONNECTION_BROKEN_SINCE_SENDER_NO_LONGER_EXISTS:
2349 case iox2_send_error_e_CONNECTION_CORRUPTED:
2351 case iox2_send_error_e_LOAN_ERROR_OUT_OF_MEMORY:
2353 case iox2_send_error_e_LOAN_ERROR_EXCEEDS_MAX_LOANS:
2355 case iox2_send_error_e_LOAN_ERROR_EXCEEDS_MAX_LOAN_SIZE:
2357 case iox2_send_error_e_LOAN_ERROR_INTERNAL_FAILURE:
2359 case iox2_send_error_e_CONNECTION_ERROR:
2361 case iox2_send_error_e_UNABLE_TO_DELIVER:
2363 case iox2_send_error_e_INTERNAL_ERROR:
2365 }
2366
2368}
2369
2370template <>
2371constexpr auto from<iox2::SendError, iox2_send_error_e>(const iox2::SendError value) noexcept -> iox2_send_error_e {
2372 switch (value) {
2374 return iox2_send_error_e_CONNECTION_BROKEN_SINCE_SENDER_NO_LONGER_EXISTS;
2376 return iox2_send_error_e_CONNECTION_CORRUPTED;
2378 return iox2_send_error_e_LOAN_ERROR_OUT_OF_MEMORY;
2380 return iox2_send_error_e_LOAN_ERROR_EXCEEDS_MAX_LOANS;
2382 return iox2_send_error_e_LOAN_ERROR_EXCEEDS_MAX_LOAN_SIZE;
2384 return iox2_send_error_e_LOAN_ERROR_INTERNAL_FAILURE;
2386 return iox2_send_error_e_CONNECTION_ERROR;
2388 return iox2_send_error_e_UNABLE_TO_DELIVER;
2390 return iox2_send_error_e_INTERNAL_ERROR;
2391 }
2392
2394}
2395
2396template <>
2397inline auto from<iox2::SendError, const char*>(const iox2::SendError value) noexcept -> const char* {
2398 return iox2_send_error_string(iox2::bb::into<iox2_send_error_e>(value));
2399}
2400
2401template <>
2402constexpr auto from<int, iox2::ReceiveError>(const int value) noexcept -> iox2::ReceiveError {
2403 const auto error = static_cast<iox2_receive_error_e>(value);
2404 switch (error) {
2405 case iox2_receive_error_e_FAILED_TO_ESTABLISH_CONNECTION:
2407 case iox2_receive_error_e_UNABLE_TO_MAP_SENDERS_DATA_SEGMENT:
2409 case iox2_receive_error_e_EXCEEDS_MAX_BORROWS:
2411 }
2412
2414}
2415
2416template <>
2418 -> iox2_receive_error_e {
2419 switch (value) {
2421 return iox2_receive_error_e_FAILED_TO_ESTABLISH_CONNECTION;
2423 return iox2_receive_error_e_UNABLE_TO_MAP_SENDERS_DATA_SEGMENT;
2425 return iox2_receive_error_e_EXCEEDS_MAX_BORROWS;
2426 }
2427
2429}
2430
2431template <>
2432inline auto from<iox2::ReceiveError, const char*>(const iox2::ReceiveError value) noexcept -> const char* {
2433 return iox2_receive_error_string(iox2::bb::into<iox2_receive_error_e>(value));
2434}
2435
2436template <>
2437constexpr auto from<int, iox2::LoanError>(const int value) noexcept -> iox2::LoanError {
2438 const auto error = static_cast<iox2_loan_error_e>(value);
2439 switch (error) {
2440 case iox2_loan_error_e_EXCEEDS_MAX_LOANED_SAMPLES:
2442 case iox2_loan_error_e_OUT_OF_MEMORY:
2444 case iox2_loan_error_e_EXCEEDS_MAX_LOAN_SIZE:
2446 case iox2_loan_error_e_INTERNAL_FAILURE:
2448 }
2449
2451}
2452
2453template <>
2454constexpr auto from<iox2::LoanError, iox2_loan_error_e>(const iox2::LoanError value) noexcept -> iox2_loan_error_e {
2455 switch (value) {
2457 return iox2_loan_error_e_EXCEEDS_MAX_LOANED_SAMPLES;
2459 return iox2_loan_error_e_OUT_OF_MEMORY;
2461 return iox2_loan_error_e_EXCEEDS_MAX_LOAN_SIZE;
2463 return iox2_loan_error_e_INTERNAL_FAILURE;
2464 }
2465
2467}
2468
2469template <>
2470inline auto from<iox2::LoanError, const char*>(const iox2::LoanError value) noexcept -> const char* {
2471 return iox2_loan_error_string(iox2::bb::into<iox2_loan_error_e>(value));
2472}
2473
2474template <>
2475constexpr auto from<int, iox2::RequestSendError>(const int value) noexcept -> iox2::RequestSendError {
2476 const auto error = static_cast<iox2_request_send_error_e>(value);
2477 switch (error) {
2478 case iox2_request_send_error_e_EXCEEDS_MAX_ACTIVE_REQUESTS:
2480 case iox2_request_send_error_e_CONNECTION_BROKEN_SINCE_SENDER_NO_LONGER_EXISTS:
2482 case iox2_request_send_error_e_CONNECTION_CORRUPTED:
2484 case iox2_request_send_error_e_LOAN_ERROR_OUT_OF_MEMORY:
2486 case iox2_request_send_error_e_LOAN_ERROR_EXCEEDS_MAX_LOANS:
2488 case iox2_request_send_error_e_LOAN_ERROR_EXCEEDS_MAX_LOAN_SIZE:
2490 case iox2_request_send_error_e_LOAN_ERROR_INTERNAL_FAILURE:
2492 case iox2_request_send_error_e_CONNECTION_ERROR:
2494 case iox2_request_send_error_e_UNABLE_TO_DELIVER:
2496 case iox2_request_send_error_e_INTERNAL_ERROR:
2498 }
2499
2501}
2502
2503template <>
2505 -> iox2_request_send_error_e {
2506 switch (value) {
2508 return iox2_request_send_error_e_EXCEEDS_MAX_ACTIVE_REQUESTS;
2510 return iox2_request_send_error_e_CONNECTION_BROKEN_SINCE_SENDER_NO_LONGER_EXISTS;
2512 return iox2_request_send_error_e_CONNECTION_CORRUPTED;
2514 return iox2_request_send_error_e_LOAN_ERROR_OUT_OF_MEMORY;
2516 return iox2_request_send_error_e_LOAN_ERROR_EXCEEDS_MAX_LOANS;
2518 return iox2_request_send_error_e_LOAN_ERROR_EXCEEDS_MAX_LOAN_SIZE;
2520 return iox2_request_send_error_e_LOAN_ERROR_INTERNAL_FAILURE;
2522 return iox2_request_send_error_e_CONNECTION_ERROR;
2524 return iox2_request_send_error_e_UNABLE_TO_DELIVER;
2526 return iox2_request_send_error_e_INTERNAL_ERROR;
2527 }
2528
2530}
2531
2532template <>
2533inline auto from<iox2::RequestSendError, const char*>(const iox2::RequestSendError value) noexcept -> const char* {
2534 return iox2_request_send_error_string(iox2::bb::into<iox2_request_send_error_e>(value));
2535}
2536
2537template <>
2538constexpr auto from<int, iox2::TypeVariant>(const int value) noexcept -> iox2::TypeVariant {
2539 const auto variant = static_cast<iox2_type_variant_e>(value);
2540 switch (variant) {
2541 case iox2_type_variant_e_DYNAMIC:
2543 case iox2_type_variant_e_FIXED_SIZE:
2545 }
2546
2548}
2549
2550template <>
2551constexpr auto from<int, iox2::ServiceListError>(const int value) noexcept -> iox2::ServiceListError {
2552 const auto variant = static_cast<iox2_service_list_error_e>(value);
2553 switch (variant) {
2554 case iox2_service_list_error_e_INSUFFICIENT_PERMISSIONS:
2556 case iox2_service_list_error_e_INTERNAL_ERROR:
2558 }
2559
2561}
2562
2563template <>
2565 -> iox2_service_list_error_e {
2566 switch (value) {
2568 return iox2_service_list_error_e_INSUFFICIENT_PERMISSIONS;
2570 return iox2_service_list_error_e_INTERNAL_ERROR;
2571 }
2572
2574}
2575
2576template <>
2577inline auto from<iox2::ServiceListError, const char*>(const iox2::ServiceListError value) noexcept -> const char* {
2578 return iox2_service_list_error_string(iox2::bb::into<iox2_service_list_error_e>(value));
2579}
2580
2581template <>
2582constexpr auto from<int, iox2::MessagingPattern>(const int value) noexcept -> iox2::MessagingPattern {
2583 const auto variant = static_cast<iox2_messaging_pattern_e>(value);
2584 switch (variant) {
2585 case iox2_messaging_pattern_e_EVENT:
2587 case iox2_messaging_pattern_e_PUBLISH_SUBSCRIBE:
2589 case iox2_messaging_pattern_e_REQUEST_RESPONSE:
2591 case iox2_messaging_pattern_e_BLACKBOARD:
2593 }
2594
2596}
2597
2598template <>
2599constexpr auto from<int, iox2::BackpressureStrategy>(const int value) noexcept -> iox2::BackpressureStrategy {
2600 const auto variant = static_cast<iox2_backpressure_strategy_e>(value);
2601 switch (variant) {
2602 case iox2_backpressure_strategy_e_RETRY_UNTIL_DELIVERED:
2604 case iox2_backpressure_strategy_e_DISCARD_DATA:
2606 }
2607
2609}
2610
2611template <>
2612constexpr auto from<iox2::BackpressureStrategy, int>(const iox2::BackpressureStrategy value) noexcept -> int {
2613 switch (value) {
2615 return iox2_backpressure_strategy_e_RETRY_UNTIL_DELIVERED;
2617 return iox2_backpressure_strategy_e_DISCARD_DATA;
2618 }
2619
2621}
2622
2623template <>
2624constexpr auto from<int, iox2::AllocationStrategy>(const int value) noexcept -> iox2::AllocationStrategy {
2625 const auto variant = static_cast<iox2_allocation_strategy_e>(value);
2626 switch (variant) {
2627 case iox2_allocation_strategy_e_STATIC:
2629 case iox2_allocation_strategy_e_BEST_FIT:
2631 case iox2_allocation_strategy_e_POWER_OF_TWO:
2633 }
2634
2636}
2637
2638template <>
2639constexpr auto from<iox2::AllocationStrategy, int>(const iox2::AllocationStrategy value) noexcept -> int {
2640 switch (value) {
2642 return iox2_allocation_strategy_e_STATIC;
2644 return iox2_allocation_strategy_e_BEST_FIT;
2646 return iox2_allocation_strategy_e_POWER_OF_TWO;
2647 }
2648
2650}
2651
2652template <>
2653constexpr auto from<int, iox2::ConnectionFailure>(const int value) noexcept -> iox2::ConnectionFailure {
2654 const auto variant = static_cast<iox2_connection_failure_e>(value);
2655 switch (variant) {
2656 case iox2_connection_failure_e_FAILED_TO_ESTABLISH_CONNECTION:
2658 case iox2_connection_failure_e_UNABLE_TO_MAP_SENDERS_DATA_SEGMENT:
2660 }
2661
2663}
2664
2665template <>
2667 -> iox2_connection_failure_e {
2668 switch (value) {
2670 return iox2_connection_failure_e_FAILED_TO_ESTABLISH_CONNECTION;
2672 return iox2_connection_failure_e_UNABLE_TO_MAP_SENDERS_DATA_SEGMENT;
2673 }
2674
2676}
2677
2678template <>
2679inline auto from<iox2::ConnectionFailure, const char*>(const iox2::ConnectionFailure value) noexcept -> const char* {
2680 return iox2_connection_failure_string(iox2::bb::into<iox2_connection_failure_e>(value));
2681}
2682
2683template <>
2684constexpr auto from<int, iox2::ConfigCreationError>(const int value) noexcept -> iox2::ConfigCreationError {
2685 const auto variant = static_cast<iox2_config_creation_error_e>(value);
2686 switch (variant) {
2687 case iox2_config_creation_error_e_FAILED_TO_READ_CONFIG_FILE_CONTENTS:
2689 case iox2_config_creation_error_e_UNABLE_TO_DESERIALIZE_CONTENTS:
2691 case iox2_config_creation_error_e_INSUFFICIENT_PERMISSIONS:
2693 case iox2_config_creation_error_e_CONFIG_FILE_DOES_NOT_EXIST:
2695 case iox2_config_creation_error_e_UNABLE_TO_OPEN_CONFIG_FILE:
2697 case iox2_config_creation_error_e_INVALID_FILE_PATH:
2698 // unreachable since this error case is excluded by using the strong type iox2::bb::FilePath
2700 }
2701
2703}
2704
2705template <>
2706constexpr auto
2708 -> iox2_config_creation_error_e {
2709 switch (value) {
2711 return iox2_config_creation_error_e_FAILED_TO_READ_CONFIG_FILE_CONTENTS;
2713 return iox2_config_creation_error_e_UNABLE_TO_DESERIALIZE_CONTENTS;
2715 return iox2_config_creation_error_e_INSUFFICIENT_PERMISSIONS;
2717 return iox2_config_creation_error_e_CONFIG_FILE_DOES_NOT_EXIST;
2719 return iox2_config_creation_error_e_UNABLE_TO_OPEN_CONFIG_FILE;
2720 }
2721
2723}
2724
2725template <>
2727 char* {
2728 return iox2_config_creation_error_string(iox2::bb::into<iox2_config_creation_error_e>(value));
2729}
2730
2731template <>
2732constexpr auto from<iox2::LogLevel, iox2_log_level_e>(iox2::LogLevel value) noexcept -> iox2_log_level_e {
2733 switch (value) {
2735 return iox2_log_level_e_TRACE;
2737 return iox2_log_level_e_DEBUG;
2739 return iox2_log_level_e_INFO;
2741 return iox2_log_level_e_WARN;
2743 return iox2_log_level_e_ERROR;
2745 return iox2_log_level_e_FATAL;
2746 }
2748}
2749
2750template <>
2751constexpr auto from<int, iox2::LogLevel>(int value) noexcept -> iox2::LogLevel {
2752 const auto variant = static_cast<iox2_log_level_e>(value);
2753 switch (variant) {
2754 case iox2_log_level_e_TRACE:
2755 return iox2::LogLevel::Trace;
2756 case iox2_log_level_e_DEBUG:
2757 return iox2::LogLevel::Debug;
2758 case iox2_log_level_e_INFO:
2759 return iox2::LogLevel::Info;
2760 case iox2_log_level_e_WARN:
2761 return iox2::LogLevel::Warn;
2762 case iox2_log_level_e_ERROR:
2763 return iox2::LogLevel::Error;
2764 case iox2_log_level_e_FATAL:
2765 return iox2::LogLevel::Fatal;
2766 }
2767
2769}
2770
2771template <>
2772constexpr auto from<int, iox2::WaitSetCreateError>(const int value) noexcept -> iox2::WaitSetCreateError {
2773 const auto variant = static_cast<iox2_waitset_create_error_e>(value);
2774 switch (variant) {
2775 case iox2_waitset_create_error_e_INTERNAL_ERROR:
2777 case iox2_waitset_create_error_e_INSUFFICIENT_RESOURCES:
2779 }
2780
2782}
2783
2784template <>
2785constexpr auto
2787 -> iox2_waitset_create_error_e {
2788 switch (value) {
2790 return iox2_waitset_create_error_e_INTERNAL_ERROR;
2792 return iox2_waitset_create_error_e_INSUFFICIENT_RESOURCES;
2793 }
2794
2796}
2797
2798template <>
2799inline auto from<iox2::WaitSetCreateError, const char*>(const iox2::WaitSetCreateError value) noexcept -> const char* {
2800 return iox2_waitset_create_error_string(iox2::bb::into<iox2_waitset_create_error_e>(value));
2801}
2802
2803template <>
2804constexpr auto from<int, iox2::WaitSetRunResult>(const int value) noexcept -> iox2::WaitSetRunResult {
2805 const auto variant = static_cast<iox2_waitset_run_result_e>(value);
2806 switch (variant) {
2807 case iox2_waitset_run_result_e_INTERRUPT:
2809 case iox2_waitset_run_result_e_TERMINATION_REQUEST:
2811 case iox2_waitset_run_result_e_STOP_REQUEST:
2813 case iox2_waitset_run_result_e_ALL_EVENTS_HANDLED:
2815 }
2816
2818}
2819
2820template <>
2822 -> iox2_waitset_run_result_e {
2823 switch (value) {
2825 return iox2_waitset_run_result_e_INTERRUPT;
2827 return iox2_waitset_run_result_e_TERMINATION_REQUEST;
2829 return iox2_waitset_run_result_e_STOP_REQUEST;
2831 return iox2_waitset_run_result_e_ALL_EVENTS_HANDLED;
2832 }
2833
2835}
2836
2837template <>
2839 const auto variant = static_cast<iox2_waitset_attachment_error_e>(value);
2840 switch (variant) {
2841 case iox2_waitset_attachment_error_e_ALREADY_ATTACHED:
2843 case iox2_waitset_attachment_error_e_INSUFFICIENT_CAPACITY:
2845 case iox2_waitset_attachment_error_e_INTERNAL_ERROR:
2847 case iox2_waitset_attachment_error_e_INSUFFICIENT_RESOURCES:
2849 }
2850
2852}
2853
2854template <>
2855constexpr auto
2857 -> iox2_waitset_attachment_error_e {
2858 switch (value) {
2860 return iox2_waitset_attachment_error_e_ALREADY_ATTACHED;
2862 return iox2_waitset_attachment_error_e_INSUFFICIENT_CAPACITY;
2864 return iox2_waitset_attachment_error_e_INTERNAL_ERROR;
2866 return iox2_waitset_attachment_error_e_INSUFFICIENT_RESOURCES;
2867 }
2868
2870}
2871
2872template <>
2874 char* {
2875 return iox2_waitset_attachment_error_string(iox2::bb::into<iox2_waitset_attachment_error_e>(value));
2876}
2877
2878template <>
2879constexpr auto from<int, iox2::WaitSetRunError>(const int value) noexcept -> iox2::WaitSetRunError {
2880 const auto variant = static_cast<iox2_waitset_run_error_e>(value);
2881 switch (variant) {
2882 case iox2_waitset_run_error_e_INSUFFICIENT_PERMISSIONS:
2884 case iox2_waitset_run_error_e_INTERNAL_ERROR:
2886 case iox2_waitset_run_error_e_NO_ATTACHMENTS:
2888 case iox2_waitset_run_error_e_TERMINATION_REQUEST:
2890 case iox2_waitset_run_error_e_INTERRUPT:
2892 case iox2_waitset_run_error_e_CLOCK_SCHEDULE_CAPACITY_EXCEEDED:
2894 case iox2_waitset_run_error_e_INSUFFICIENT_CAPACITY:
2896 case iox2_waitset_run_error_e_INSUFFICIENT_RESOURCES:
2898 case iox2_waitset_run_error_e_ATTACHMENT_FAILED:
2900 }
2901
2903}
2904
2905template <>
2907 -> iox2_waitset_run_error_e {
2908 switch (value) {
2910 return iox2_waitset_run_error_e_INSUFFICIENT_PERMISSIONS;
2912 return iox2_waitset_run_error_e_INTERNAL_ERROR;
2914 return iox2_waitset_run_error_e_NO_ATTACHMENTS;
2916 return iox2_waitset_run_error_e_TERMINATION_REQUEST;
2918 return iox2_waitset_run_error_e_INTERRUPT;
2920 return iox2_waitset_run_error_e_CLOCK_SCHEDULE_CAPACITY_EXCEEDED;
2922 return iox2_waitset_run_error_e_INSUFFICIENT_CAPACITY;
2924 return iox2_waitset_run_error_e_INSUFFICIENT_RESOURCES;
2926 return iox2_waitset_run_error_e_ATTACHMENT_FAILED;
2927 }
2928
2930}
2931
2932template <>
2933inline auto from<iox2::WaitSetRunError, const char*>(const iox2::WaitSetRunError value) noexcept -> const char* {
2934 return iox2_waitset_run_error_string(iox2::bb::into<iox2_waitset_run_error_e>(value));
2935}
2936
2937template <>
2938constexpr auto
2940 -> iox2_signal_handling_mode_e {
2941 switch (value) {
2943 return iox2_signal_handling_mode_e_DISABLED;
2945 return iox2_signal_handling_mode_e_HANDLE_TERMINATION_REQUESTS;
2946 }
2947
2949}
2950
2951template <>
2952constexpr auto from<int, iox2::SignalHandlingMode>(const int value) noexcept -> iox2::SignalHandlingMode {
2953 const auto variant = static_cast<iox2_signal_handling_mode_e>(value);
2954
2955 switch (variant) {
2956 case iox2_signal_handling_mode_e_DISABLED:
2958 case iox2_signal_handling_mode_e_HANDLE_TERMINATION_REQUESTS:
2960 }
2961
2963}
2964
2965template <>
2967 -> iox2_allocation_strategy_e {
2968 switch (value) {
2970 return iox2_allocation_strategy_e_BEST_FIT;
2972 return iox2_allocation_strategy_e_POWER_OF_TWO;
2974 return iox2_allocation_strategy_e_STATIC;
2975 }
2976
2978}
2979
2980template <>
2981constexpr auto from<int, iox2::NodeCleanupFailure>(const int value) noexcept -> iox2::NodeCleanupFailure {
2982 const auto variant = static_cast<iox2_node_cleanup_failure_e>(value);
2983
2984 switch (variant) {
2985 case iox2_node_cleanup_failure_e_INTERRUPT:
2987 case iox2_node_cleanup_failure_e_INTERNAL_ERROR:
2989 case iox2_node_cleanup_failure_e_INSUFFICIENT_PERMISSIONS:
2991 case iox2_node_cleanup_failure_e_VERSION_MISMATCH:
2993 case iox2_node_cleanup_failure_e_ANOTHER_INSTANCE_IS_CLEANING_UP_THE_NODE:
2995 case iox2_node_cleanup_failure_e_RESOURCES_ALREADY_CLEANED_UP:
2997 }
2998
3000}
3001
3002template <>
3003constexpr auto from<int, iox2::AttributeVerificationError>(const int value) noexcept
3005 const auto error = static_cast<iox2_attribute_verification_error_e>(value);
3006 switch (error) {
3007 case iox2_attribute_verification_error_e_NON_EXISTING_KEY:
3009 case iox2_attribute_verification_error_e_INCOMPATIBLE_ATTRIBUTE:
3011 }
3012
3014}
3015
3016template <>
3018 const auto error = static_cast<iox2_attribute_definition_error_e>(value);
3019 switch (error) {
3020 case iox2_attribute_definition_error_e_EXCEEDS_MAX_SUPPORTED_ATTRIBUTES:
3022 }
3023
3025}
3026
3027template <>
3028constexpr auto from<iox2_degradation_cause_e, iox2::DegradationCause>(const iox2_degradation_cause_e value) noexcept
3030 switch (value) {
3031 case iox2_degradation_cause_e_FAILED_TO_ESTABLISH_CONNECTION:
3033 case iox2_degradation_cause_e_CONNECTION_CORRUPTED:
3035 }
3036
3038}
3039
3040template <>
3042 -> iox2_degradation_action_e {
3043 switch (value) {
3045 return iox2_degradation_action_e_IGNORE;
3047 return iox2_degradation_action_e_WARN;
3049 return iox2_degradation_action_e_DEGRADE_AND_FAIL;
3050 }
3051
3053}
3054
3055template <>
3057 -> iox2_backpressure_action_e {
3058 switch (value) {
3060 return iox2_backpressure_action_e_FOLLOW_BACKPRESSUREY_STRATEGY;
3062 return iox2_backpressure_action_e_RETRY;
3064 return iox2_backpressure_action_e_DISCARD_DATA;
3066 return iox2_backpressure_action_e_DISCARD_DATA_AND_FAIL;
3067 }
3068
3070}
3071
3072template <>
3073constexpr auto
3074from<iox2_service_remove_error_e, iox2::ServiceRemoveError>(const iox2_service_remove_error_e value) noexcept
3076 switch (value) {
3077 case iox2_service_remove_error_e_INTERNAL_ERROR:
3079 case iox2_service_remove_error_e_INSUFFICIENT_PERMISSIONS:
3081 case iox2_service_remove_error_e_VERSION_MISMATCH:
3083 case iox2_service_remove_error_e_INTERRUPT:
3085 }
3086
3088}
3089
3090template <>
3091constexpr auto from<int, iox2::UniqueIdGeneratorDetailsError>(const int value) noexcept
3093 const auto error = static_cast<iox2_unique_id_generator_details_error_e>(value);
3094 switch (error) {
3095 case iox2_unique_id_generator_details_error_e_NOT_IMPLEMENTED:
3097 }
3098
3100}
3101
3102} // namespace bb
3103} // namespace iox2
3104
3105#endif
#define IOX2_UNREACHABLE()
panic if control flow reaches this code at runtime
constexpr auto from< int, iox2::ListenerCreateError >(const int value) noexcept -> iox2::ListenerCreateError
auto from< iox2::WaitSetCreateError, const char * >(const iox2::WaitSetCreateError value) noexcept -> const char *
constexpr auto from< iox2::NodeWaitFailure, iox2_node_wait_failure_e >(const iox2::NodeWaitFailure value) noexcept -> iox2_node_wait_failure_e
auto from< iox2::PublishSubscribeCreateError, const char * >(const iox2::PublishSubscribeCreateError value) noexcept -> const char *
auto from< iox2::RequestResponseCreateError, const char * >(const iox2::RequestResponseCreateError value) noexcept -> const char *
constexpr auto from< int, iox2::ConnectionFailure >(const int value) noexcept -> iox2::ConnectionFailure
auto from< iox2::NodeWaitFailure, const char * >(const iox2::NodeWaitFailure value) noexcept -> const char *
constexpr auto from< int, iox2::RequestResponseOpenOrCreateError >(const int value) noexcept -> iox2::RequestResponseOpenOrCreateError
constexpr auto from< int, iox2::WaitSetAttachmentError >(const int value) noexcept -> iox2::WaitSetAttachmentError
constexpr auto from< iox2::NodeCreationFailure, iox2_node_creation_failure_e >(const iox2::NodeCreationFailure value) noexcept -> iox2_node_creation_failure_e
auto from< iox2::PublishSubscribeOpenOrCreateError, const char * >(const iox2::PublishSubscribeOpenOrCreateError value) noexcept -> const char *
constexpr auto from< iox2_service_remove_error_e, iox2::ServiceRemoveError >(const iox2_service_remove_error_e value) noexcept -> iox2::ServiceRemoveError
constexpr auto from< iox2::MessagingPattern, iox2_messaging_pattern_e >(const iox2::MessagingPattern value) noexcept -> iox2_messaging_pattern_e
constexpr auto from< int, iox2::NodeCreationFailure >(const int value) noexcept -> iox2::NodeCreationFailure
auto from< iox2::PublishSubscribeOpenError, const char * >(const iox2::PublishSubscribeOpenError value) noexcept -> const char *
auto from< iox2::ConnectionFailure, const char * >(const iox2::ConnectionFailure value) noexcept -> const char *
constexpr auto from< iox2::WriterCreateError, iox2_writer_create_error_e >(const iox2::WriterCreateError value) noexcept -> iox2_writer_create_error_e
constexpr auto from< iox2::WaitSetRunError, iox2_waitset_run_error_e >(const iox2::WaitSetRunError value) noexcept -> iox2_waitset_run_error_e
constexpr auto from< int, iox2::SubscriberCreateError >(const int value) noexcept -> iox2::SubscriberCreateError
constexpr auto from< iox2::CallbackProgression, iox2_callback_progression_e >(const iox2::CallbackProgression value) noexcept -> iox2_callback_progression_e
auto from< iox2::BlackboardCreateError, const char * >(const iox2::BlackboardCreateError value) noexcept -> const char *
constexpr auto from< int, iox2::WaitSetRunError >(const int value) noexcept -> iox2::WaitSetRunError
constexpr auto from< iox2::PublishSubscribeOpenOrCreateError, iox2_pub_sub_open_or_create_error_e >(const iox2::PublishSubscribeOpenOrCreateError value) noexcept -> iox2_pub_sub_open_or_create_error_e
constexpr auto from< int, iox2::WaitSetCreateError >(const int value) noexcept -> iox2::WaitSetCreateError
auto from< iox2::EventCreateError, const char * >(const iox2::EventCreateError value) noexcept -> const char *
constexpr auto from< int, iox2::ClientCreateError >(const int value) noexcept -> iox2::ClientCreateError
constexpr auto from< iox2::AllocationStrategy, int >(const iox2::AllocationStrategy value) noexcept -> int
auto from< iox2::ReceiveError, const char * >(const iox2::ReceiveError value) noexcept -> const char *
constexpr auto from< int, iox2::EntryHandleMutError >(const int value) noexcept -> iox2::EntryHandleMutError
constexpr auto from< iox2::EntryHandleMutError, iox2_entry_handle_mut_error_e >(const iox2::EntryHandleMutError value) noexcept -> iox2_entry_handle_mut_error_e
auto from< iox2::EntryHandleMutError, const char * >(const iox2::EntryHandleMutError value) noexcept -> const char *
constexpr auto from< iox2::RequestResponseCreateError, iox2_request_response_open_or_create_error_e >(const iox2::RequestResponseCreateError value) noexcept -> iox2_request_response_open_or_create_error_e
constexpr auto from< iox2::ConfigCreationError, iox2_config_creation_error_e >(const iox2::ConfigCreationError value) noexcept -> iox2_config_creation_error_e
auto from< iox2::WriterCreateError, const char * >(const iox2::WriterCreateError value) noexcept -> const char *
constexpr auto into(const SourceType value) noexcept -> typename detail::ExtractIntoType< DestinationType >::TargetType
Converts a value of type SourceType to a corresponding value of type DestinationType....
Definition into.hpp:120
auto from< iox2::RequestSendError, const char * >(const iox2::RequestSendError value) noexcept -> const char *
constexpr auto from< int, iox2::AttributeDefinitionError >(const int value) noexcept -> iox2::AttributeDefinitionError
auto from< iox2::ListenerWaitError, const char * >(const iox2::ListenerWaitError value) noexcept -> const char *
constexpr auto from< iox2::BackpressureStrategy, int >(const iox2::BackpressureStrategy value) noexcept -> int
auto from< iox2::ServiceDetailsError, const char * >(const iox2::ServiceDetailsError value) noexcept -> const char *
constexpr auto from< iox2::RequestResponseOpenOrCreateError, iox2_request_response_open_or_create_error_e >(const iox2::RequestResponseOpenOrCreateError value) noexcept -> iox2_request_response_open_or_create_error_e
constexpr auto from< iox2::BackpressureAction, iox2_backpressure_action_e >(const iox2::BackpressureAction value) noexcept -> iox2_backpressure_action_e
auto from< iox2::ListenerCreateError, const char * >(const iox2::ListenerCreateError value) noexcept -> const char *
constexpr auto from< int, iox2::NodeWaitFailure >(const int value) noexcept -> iox2::NodeWaitFailure
constexpr auto from< int, iox2::EventOpenOrCreateError >(const int value) noexcept -> iox2::EventOpenOrCreateError
auto from< iox2::EventOpenError, const char * >(const iox2::EventOpenError value) noexcept -> const char *
constexpr auto from< iox2::EventCreateError, iox2_event_open_or_create_error_e >(const iox2::EventCreateError value) noexcept -> iox2_event_open_or_create_error_e
constexpr auto from< iox2::PublisherCreateError, iox2_publisher_create_error_e >(const iox2::PublisherCreateError value) noexcept -> iox2_publisher_create_error_e
constexpr auto from< int, iox2::ServiceDetailsError >(const int value) noexcept -> iox2::ServiceDetailsError
constexpr auto from< iox2::WaitSetCreateError, iox2_waitset_create_error_e >(const iox2::WaitSetCreateError value) noexcept -> iox2_waitset_create_error_e
constexpr auto from< iox2::ServiceType, iox2_service_type_e >(const iox2::ServiceType value) noexcept -> iox2_service_type_e
constexpr auto from< iox2::ServerCreateError, iox2_server_create_error_e >(const iox2::ServerCreateError value) noexcept -> iox2_server_create_error_e
constexpr auto from< int, iox2::EventCreateError >(const int value) noexcept -> iox2::EventCreateError
constexpr auto from< int, iox2::UniqueIdGeneratorDetailsError >(const int value) noexcept -> iox2::UniqueIdGeneratorDetailsError
constexpr auto from< iox2::EventOpenOrCreateError, iox2_event_open_or_create_error_e >(const iox2::EventOpenOrCreateError value) noexcept -> iox2_event_open_or_create_error_e
auto from< iox2::BlackboardOpenError, const char * >(const iox2::BlackboardOpenError value) noexcept -> const char *
constexpr auto from< int, iox2::BlackboardCreateError >(const int value) noexcept -> iox2::BlackboardCreateError
auto from< iox2::RequestResponseOpenOrCreateError, const char * >(const iox2::RequestResponseOpenOrCreateError value) noexcept -> const char *
auto from< iox2::ServiceListError, const char * >(const iox2::ServiceListError value) noexcept -> const char *
constexpr auto from< iox2::ReceiveError, iox2_receive_error_e >(const iox2::ReceiveError value) noexcept -> iox2_receive_error_e
constexpr auto from< int, iox2::RequestResponseOpenError >(const int value) noexcept -> iox2::RequestResponseOpenError
constexpr auto from< iox2::WaitSetRunResult, iox2_waitset_run_result_e >(const iox2::WaitSetRunResult value) noexcept -> iox2_waitset_run_result_e
constexpr auto from< iox2::ServiceDetailsError, iox2_service_details_error_e >(const iox2::ServiceDetailsError value) noexcept -> iox2_service_details_error_e
constexpr auto from< iox2::RequestResponseOpenError, iox2_request_response_open_or_create_error_e >(const iox2::RequestResponseOpenError value) noexcept -> iox2_request_response_open_or_create_error_e
constexpr auto from< iox2::BlackboardCreateError, iox2_blackboard_create_error_e >(const iox2::BlackboardCreateError value) noexcept -> iox2_blackboard_create_error_e
constexpr auto from< int, iox2::NodeCleanupFailure >(const int value) noexcept -> iox2::NodeCleanupFailure
constexpr auto from< int, iox2::AllocationStrategy >(const int value) noexcept -> iox2::AllocationStrategy
constexpr auto from< iox2::SendError, iox2_send_error_e >(const iox2::SendError value) noexcept -> iox2_send_error_e
constexpr auto from< iox2::ClientCreateError, iox2_client_create_error_e >(const iox2::ClientCreateError value) noexcept -> iox2_client_create_error_e
SemanticStringError
Defines errors which can occur when modifying or creating a SemanticString.
constexpr auto from< iox2::ListenerCreateError, iox2_listener_create_error_e >(const iox2::ListenerCreateError value) noexcept -> iox2_listener_create_error_e
auto from< iox2::RequestResponseOpenError, const char * >(const iox2::RequestResponseOpenError value) noexcept -> const char *
constexpr auto from< int, iox2::MessagingPattern >(const int value) noexcept -> iox2::MessagingPattern
constexpr auto from< int, iox2::EntryHandleError >(const int value) noexcept -> iox2::EntryHandleError
constexpr auto from< int, iox2::RequestSendError >(const int value) noexcept -> iox2::RequestSendError
auto from< iox2::ServerCreateError, const char * >(const iox2::ServerCreateError value) noexcept -> const char *
constexpr auto from< iox2::BlackboardOpenError, iox2_blackboard_open_error_e >(const iox2::BlackboardOpenError value) noexcept -> iox2_blackboard_open_error_e
constexpr auto from< iox2::LogLevel, iox2_log_level_e >(iox2::LogLevel value) noexcept -> iox2_log_level_e
constexpr auto from< int, iox2::PublishSubscribeOpenError >(const int value) noexcept -> iox2::PublishSubscribeOpenError
constexpr auto from< int, iox2::ServiceListError >(const int value) noexcept -> iox2::ServiceListError
constexpr auto from< int, iox2::LoanError >(const int value) noexcept -> iox2::LoanError
constexpr auto from< int, iox2::WriterCreateError >(const int value) noexcept -> iox2::WriterCreateError
constexpr auto from< iox2::DegradationAction, iox2_degradation_action_e >(const iox2::DegradationAction value) noexcept -> iox2_degradation_action_e
constexpr auto from< int, iox2::SendError >(const int value) noexcept -> iox2::SendError
auto from< iox2::NodeCreationFailure, const char * >(const iox2::NodeCreationFailure value) noexcept -> const char *
auto from< iox2::WaitSetRunError, const char * >(const iox2::WaitSetRunError value) noexcept -> const char *
constexpr auto from< int, iox2::WaitSetRunResult >(const int value) noexcept -> iox2::WaitSetRunResult
constexpr auto from< int, iox2::NodeListFailure >(const int value) noexcept -> iox2::NodeListFailure
constexpr auto from< int, iox2::CallbackProgression >(const int value) noexcept -> iox2::CallbackProgression
constexpr auto from< int, iox2::LogLevel >(int value) noexcept -> iox2::LogLevel
auto from< iox2::WaitSetAttachmentError, const char * >(const iox2::WaitSetAttachmentError value) noexcept -> const char *
constexpr auto from< int, iox2::NotifierNotifyError >(const int value) noexcept -> iox2::NotifierNotifyError
constexpr auto from< int, iox2::ReaderCreateError >(const int value) noexcept -> iox2::ReaderCreateError
auto from< iox2::LoanError, const char * >(const iox2::LoanError value) noexcept -> const char *
auto from< iox2::ReaderCreateError, const char * >(const iox2::ReaderCreateError value) noexcept -> const char *
auto from< iox2::EventOpenOrCreateError, const char * >(const iox2::EventOpenOrCreateError value) noexcept -> const char *
auto from< iox2::NodeListFailure, const char * >(const iox2::NodeListFailure value) noexcept -> const char *
constexpr auto from< iox2::ListenerWaitError, iox2_listener_wait_error_e >(const iox2::ListenerWaitError value) noexcept -> iox2_listener_wait_error_e
constexpr auto from< int, iox2::PublishSubscribeOpenOrCreateError >(const int value) noexcept -> iox2::PublishSubscribeOpenOrCreateError
constexpr auto from< int, iox2::ServerCreateError >(const int value) noexcept -> iox2::ServerCreateError
constexpr auto from< iox2::NodeListFailure, iox2_node_list_failure_e >(const iox2::NodeListFailure value) noexcept -> iox2_node_list_failure_e
constexpr auto from< int, iox2::ReceiveError >(const int value) noexcept -> iox2::ReceiveError
constexpr auto from< iox2::NotifierCreateError, iox2_notifier_create_error_e >(const iox2::NotifierCreateError value) noexcept -> iox2_notifier_create_error_e
constexpr auto from< iox2::EventOpenError, iox2_event_open_or_create_error_e >(const iox2::EventOpenError value) noexcept -> iox2_event_open_or_create_error_e
auto from< iox2::NotifierNotifyError, const char * >(const iox2::NotifierNotifyError value) noexcept -> const char *
constexpr auto from< int, iox2::NotifierCreateError >(const int value) noexcept -> iox2::NotifierCreateError
auto from< iox2::NotifierCreateError, const char * >(const iox2::NotifierCreateError value) noexcept -> const char *
constexpr auto from< iox2::EntryHandleError, iox2_entry_handle_error_e >(const iox2::EntryHandleError value) noexcept -> iox2_entry_handle_error_e
constexpr auto from< int, iox2::EventOpenError >(const int value) noexcept -> iox2::EventOpenError
auto from< iox2::SendError, const char * >(const iox2::SendError value) noexcept -> const char *
auto from< iox2::bb::SemanticStringError, const char * >(const iox2::bb::SemanticStringError value) noexcept -> const char *
constexpr auto from< int, iox2::AttributeVerificationError >(const int value) noexcept -> iox2::AttributeVerificationError
constexpr auto from< iox2_degradation_cause_e, iox2::DegradationCause >(const iox2_degradation_cause_e value) noexcept -> iox2::DegradationCause
constexpr auto from< int, iox2::SignalHandlingMode >(const int value) noexcept -> iox2::SignalHandlingMode
constexpr auto from< int, iox2::ServiceType >(const int value) noexcept -> iox2::ServiceType
constexpr auto from< int, iox2::BackpressureStrategy >(const int value) noexcept -> iox2::BackpressureStrategy
constexpr auto from< int, iox2::RequestResponseCreateError >(const int value) noexcept -> iox2::RequestResponseCreateError
auto from< iox2::ConfigCreationError, const char * >(const iox2::ConfigCreationError value) noexcept -> const char *
constexpr auto from< int, iox2::BlackboardOpenError >(const int value) noexcept -> iox2::BlackboardOpenError
auto from< iox2::SubscriberCreateError, const char * >(const iox2::SubscriberCreateError value) noexcept -> const char *
auto from< iox2::ClientCreateError, const char * >(const iox2::ClientCreateError value) noexcept -> const char *
constexpr auto from< int, iox2::PublisherCreateError >(const int value) noexcept -> iox2::PublisherCreateError
constexpr auto from< iox2::RequestSendError, iox2_request_send_error_e >(const iox2::RequestSendError value) noexcept -> iox2_request_send_error_e
constexpr auto from< int, iox2::ListenerWaitError >(const int value) noexcept -> iox2::ListenerWaitError
constexpr auto from< iox2::AllocationStrategy, iox2_allocation_strategy_e >(const iox2::AllocationStrategy value) noexcept -> iox2_allocation_strategy_e
auto from< iox2::PublisherCreateError, const char * >(const iox2::PublisherCreateError value) noexcept -> const char *
constexpr auto from< iox2::SubscriberCreateError, iox2_subscriber_create_error_e >(const iox2::SubscriberCreateError value) noexcept -> iox2_subscriber_create_error_e
constexpr auto from< iox2::ServiceListError, iox2_service_list_error_e >(const iox2::ServiceListError value) noexcept -> iox2_service_list_error_e
constexpr auto from< int, iox2::ConfigCreationError >(const int value) noexcept -> iox2::ConfigCreationError
constexpr auto from< int, iox2::PublishSubscribeCreateError >(const int value) noexcept -> iox2::PublishSubscribeCreateError
constexpr auto from< iox2::WaitSetAttachmentError, iox2_waitset_attachment_error_e >(const iox2::WaitSetAttachmentError value) noexcept -> iox2_waitset_attachment_error_e
constexpr auto from< iox2::ReaderCreateError, iox2_reader_create_error_e >(const iox2::ReaderCreateError value) noexcept -> iox2_reader_create_error_e
constexpr auto from< iox2::LoanError, iox2_loan_error_e >(const iox2::LoanError value) noexcept -> iox2_loan_error_e
constexpr auto from< iox2::PublishSubscribeCreateError, iox2_pub_sub_open_or_create_error_e >(const iox2::PublishSubscribeCreateError value) noexcept -> iox2_pub_sub_open_or_create_error_e
constexpr auto from< iox2::ConnectionFailure, iox2_connection_failure_e >(const iox2::ConnectionFailure value) noexcept -> iox2_connection_failure_e
constexpr auto from< int, iox2::TypeVariant >(const int value) noexcept -> iox2::TypeVariant
auto from< iox2::EntryHandleError, const char * >(const iox2::EntryHandleError value) noexcept -> const char *
constexpr auto from< iox2::NotifierNotifyError, iox2_notifier_notify_error_e >(const iox2::NotifierNotifyError value) noexcept -> iox2_notifier_notify_error_e
constexpr auto from< int, iox2::bb::SemanticStringError >(const int value) noexcept -> iox2::bb::SemanticStringError
constexpr auto from< iox2::PublishSubscribeOpenError, iox2_pub_sub_open_or_create_error_e >(const iox2::PublishSubscribeOpenError value) noexcept -> iox2_pub_sub_open_or_create_error_e
constexpr auto from< iox2::bb::SemanticStringError, iox2_semantic_string_error_e >(const iox2::bb::SemanticStringError value) noexcept -> iox2_semantic_string_error_e
constexpr auto from< iox2::SignalHandlingMode, iox2_signal_handling_mode_e >(const iox2::SignalHandlingMode value) noexcept -> iox2_signal_handling_mode_e
WaitSetRunResult
States why the [WaitSet::run()] method returned.
@ StopRequest
The users callback returned [CallbackProgression::Stop].
@ Interrupt
An interrupt signal SIGINT was received.
@ AllEventsHandled
All events were handled.
@ TerminationRequest
A termination signal SIGTERM was received.
NotifierNotifyError
Defines the failures that can occur while a [Notifier::notify()] call.
@ UnableToGenerateUniquePublisherId
The [UniquePublisherId] could not be generated.
@ UnableToCreatePortTag
The tracking port tag, required for cleanup, could not be created.
@ DiscardData
Do not deliver the data to receiver with a full buffer.
SendError
Failure that can be emitted when data is sent.
@ ConnectionError
A failure occurred while establishing a connection to the ports counterpart port.
@ LoanErrorOutOfMemory
The data segment does not have any more memory left.
@ ConnectionBrokenSinceSenderNoLongerExists
Send was called but the corresponding port went already out of scope.
@ LoanErrorInternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
@ InternalError
An internal mechanisms failed and the data could not be delivered to all receivers.
@ UnableToDeliver
The sample could not be delivered.
@ ConnectionCorrupted
A connection between two ports has been corrupted.
@ UnableToCreatePortTag
The tracking port tag, required for cleanup, could not be created.
@ UnableToGenerateUniqueSubscriberId
The [UniqueSubscriberId] could not be generated.
@ HistoryRequestExceedsBufferSizeOfSubscriber
When the [Subscriber] requests a larger history than its buffer can hold.
EntryHandleError
Defines a failure that can occur when a [EntryHandle] is created with [Reader::entry()].
@ EntryDoesNotExist
The entry with the given key and value type does not exist.
@ UnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ TypeDefinitionHasNoRootType
The flatbuffer schema declares no root_type.
@ DoesNotSupportRequestedAmountOfClients
The [Service] has a lower maximum number of clients than requested.
@ ServiceInCorruptedState
Some underlying resources of the [Service] are either missing, corrupted or inaccessible.
@ DoesNotSupportRequestedAmountOfBorrowedResponsesPerPendingResponse
The [Service] has a lower maximum number of [Response] borrows than requested.
@ DoesNotSupportRequestedResponseBufferSize
The [Service] has a lower maximum response buffer size than requested.
@ IncompatibleOverflowBehaviorForRequests
The [Service] required overflow behavior for requests is not compatible.
@ VersionMismatch
The iceoryx2 service version does not match the one of the [Service].
@ IncompatibleAttributes
The [AttributeVerifier] required attributes that the [Service] does not satisfy.
@ IncompatibleOverflowBehaviorForResponses
The [Service] required overflow behavior for responses is not compatible.
@ InsufficientPermissions
The process has not enough permissions to open the [Service].
@ DoesNotSupportRequestedAmountOfServers
The [Service] has a lower maximum number of servers than requested.
@ IncompatibleBehaviorForFireAndForgetRequests
The [Service] does not support the required behavior for fire and forget requests.
@ IncompatibleMessagingPattern
The [Service] has the wrong messaging pattern.
@ InternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
@ DoesNotSupportRequestedAmountOfNodes
The [Service] has a lower maximum number of nodes than requested.
@ DoesNotExist
Service could not be openen since it does not exist.
@ ExceedsMaxNumberOfNodes
The maximum number of [Node]s have already opened the [Service].
@ Disabled
No signal handler will be registered.
BlackboardOpenError
Errors that can occur when an existing [MessagingPattern::Blackboard] [Service] shall be opened.
@ UnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ ServiceInCorruptedState
Some underlying resources of the [Service] are either missing, corrupted or inaccessible.
@ Interrupt
An interrupt signal was raised.
@ DoesNotSupportRequestedAmountOfReaders
The [Service] supports less [Reader](crate::port::reader::Reader)s than requested.
@ VersionMismatch
The iceoryx2 service version does not match the one of the [Service].
@ IncompatibleAttributes
The [AttributeVerifier] required attributes that the [Service] does not satisfy.
@ InsufficientPermissions
The process has not enough permissions to open the [Service].
@ IncompatibleMessagingPattern
The [Service] has the wrong messaging pattern.
@ IncompatibleKeys
The [Service] has the wrong key type.
@ InternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
@ DoesNotSupportRequestedAmountOfNodes
The [Service] supports less [Node](crate::node::Node)s than requested.
@ DoesNotExist
The [Service] could not be opened since it does not exist.
@ ExceedsMaxNumberOfNodes
The maximum number of [Node](crate::node::Node)s have already opened the [Service].
@ ServiceInInconsistentState
Required [Service] resources are not available or corrupted.
@ Interrupt
An interrupt signal was raised.
@ VersionMismatch
The [Service] was created with a different iceoryx2 version.
@ InsufficientPermissions
The process does not have the permissions to acquire the service details.
@ FailedToReadStaticServiceInfo
The underlying static [Service] information could not be read.
@ FailedToAcquireNodeState
The [NodeState] could not be acquired.
@ FailedToOpenStaticServiceInfo
The underlying static [Service] information could not be opened.
@ CreateUnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ OpenIncompatibleTypes
The [Service] has the wrong payload type.
@ OpenIncompatibleMessagingPattern
The [Service] has the wrong messaging pattern.
@ CreateIsBeingCreatedByAnotherInstance
Multiple processes are trying to create the same [Service].
@ OpenIncompatibleOverflowBehavior
The [Service] required overflow behavior is not compatible.
@ CreateTypeDefinitionHasNoRootType
The flatbuffer schema declares no root_type.
@ OpenInsufficientPermissions
The process has not enough permissions to open the [Service].
@ OpenUnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ OpenDoesNotSupportRequestedMinBufferSize
The [Service] has a lower minimum buffer size than requested.
@ CreateInsufficientPermissions
The process has insufficient permissions to create the [Service].
@ OpenTypeDefinitionHasNoRootType
The flatbuffer schema declares no root_type.
@ OpenVersionMismatch
The iceoryx2 service version does not match the one of the [Service].
@ CreateServiceConfigCouldNotBeCreated
The [Service]s config could not be created and written to the static service configuration.
@ CreateUnableToGenerateUniqueServiceId
The unique service id could not be generated.
@ OpenDoesNotExist
Service could not be openen since it does not exist.
@ OpenDoesNotSupportRequestedMinHistorySize
The [Service] has a lower minimum history size than requested.
WriterCreateError
@ UnableToCreatePortTag
The tracking port tag, required for cleanup, could not be created.
@ UnableToGenerateUniqueWriterId
The [UniqueWriterId] could not be generated.
@ UnableToCreatePortTag
The tracking port tag, required for cleanup, could not be created.
@ UnableToGenerateUniqueListenerId
The [UniqueListenerId] could not be generated.
ServerCreateError
@ UnableToCreatePortTag
The tracking port tag, required for cleanup, could not be created.
@ UnableToGenerateUniqueServerId
The [UniqueServerId] could not be generated.
@ UnableToCreateDataSegment
The datasegment in which the payload of the [Server] is stored, could not be created.
@ CreateUnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ OpenIncompatibleDeadline
The [Service]s deadline settings are not equal the the user given requirements.
@ OpenIncompatibleMessagingPattern
The [Service] has the wrong messaging pattern.
@ CreateInterrupt
An interrupt signal was raised.
@ OpenInterrupt
An interrupt signal was raised.
@ CreateIsBeingCreatedByAnotherInstance
Multiple processes are trying to create the same [Service].
@ CreateAlreadyExists
The [Service] already exists.
@ OpenInsufficientPermissions
The process has not enough permissions to open the [Service].
@ OpenUnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ CreateInsufficientPermissions
The process has insufficient permissions to create the [Service].
@ OpenVersionMismatch
The iceoryx2 service version does not match the one of the [Service].
@ CreateServiceConfigCouldNotBeCreated
The [Service]s config could not be created and written to the static service configuration.
@ CreateUnableToGenerateUniqueServiceId
The unique service id could not be generated.
@ OpenDoesNotExist
The [Service] does not exist.
@ Static
The memory is not increased. This may lead to an out-of-memory error when allocating.
PublishSubscribeCreateError
Errors that can occur when a new [MessagingPattern::PublishSubscribe] [Service] shall be created.
@ UnableToGenerateUniqueServiceId
The unique service id could not be generated.
@ UnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ TypeDefinitionHasNoRootType
The flatbuffer schema declares no root_type.
@ IsBeingCreatedByAnotherInstance
Multiple processes are trying to create the same [Service].
@ InsufficientPermissions
The process has insufficient permissions to create the [Service].
@ ServiceConfigCouldNotBeCreated
The [Service]s config could not be created and written to the static service configuration.
@ InternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
@ OutOfMemory
The data segment does not have any more memory left.
@ Warn
Print out a warning as soon as the degradation is detected.
@ DegradeAndFail
Returns a failure in the function the degradation was detected.
@ Ignore
Ignore the degradation completely.
@ ClockScheduleCapacityExceeded
The capacity of the clock scheduler is exceeded.
@ ContractViolation
The notification payload did not satisfy the underlying contract.
@ NotificationError
A notifier could not be created or the notification failed.
@ InterruptSignal
An interrupt signal was raised while waiting for a notification.
ClientCreateError
@ UnableToGenerateUniqueClientId
The [UniqueClientId] could not be generated.
@ UnableToCreatePortTag
The tracking port tag, required for cleanup, could not be created.
@ UnableToCreateDataSegment
The datasegment in which the payload of the [Client] is stored, could not be created.
@ MaxActiveRequestsExceedsMaxSupportedActiveRequestsOfService
BackpressureAction
Defines the action that shall be take when data cannot be delivered.
@ FollowBackpressureStrategy
Use an action which is derived from the BackpressureStrategy.
@ Retry
Retry to send and invoke the handler again, if sending does not succeed.
EventCreateError
Failures that can occur when a new [MessagingPattern::Event] [Service] shall be created.
@ UnableToGenerateUniqueServiceId
The unique service id could not be generated.
@ UnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ Interrupt
An interrupt signal was raised.
@ IsBeingCreatedByAnotherInstance
Multiple processes are trying to create the same [Service].
@ InsufficientPermissions
The process has insufficient permissions to create the [Service].
@ AlreadyExists
The [Service] already exists.
@ ServiceConfigCouldNotBeCreated
The [Service]s config could not be created and written to the static service configuration.
@ FailedToEstablishConnection
Occurs when a receiver is unable to connect to a corresponding sender.
@ UnableToMapSendersDataSegment
Failures when mapping the corresponding data segment.
@ FailedToEstablishConnection
Failures when creating the connection.
@ UnableToMapSendersDataSegment
Failures when mapping the corresponding data segment.
WaitSetRunError
Defines the failures that can occur when calling [WaitSet::run()].
@ NoAttachments
Waiting on an empty [WaitSet] would lead to a deadlock therefore it causes an error.
@ InsufficientResources
Insufficient resources to add another attachment to the [WaitSet].
@ Interrupt
An interrupt signal SIGINT was received.
@ InsufficientCapacity
The [WaitSet]s capacity is exceeded.
@ InsufficientPermissions
The process has not sufficient permissions to wait on the attachments.
@ TerminationRequest
A termination signal SIGTERM was received.
@ AttachmentFailed
An attachment failed.
@ InternalError
An internal error has occurred.
@ ClockScheduleCapacityExceeded
The schedule capacity of the used clock was exceeded.
AttributeDefinitionError
Failures that can occur when defining [Attribute]s with [AttributeSpecifier::define()].
@ ExceedsMaxSupportedAttributes
The new [Attribute] would exceed the maximum supported number of [Attribute]s.
@ Local
Optimized for inter-thread communication does not support inter-process communication.
@ Ipc
Optimized for inter-process communication.
EventOpenError
Failures that can occur when an existing [MessagingPattern::Event] [Service] shall be opened.
@ UnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ Interrupt
An interrupt signal was raised.
@ VersionMismatch
The iceoryx2 service version does not match the one of the [Service].
@ InsufficientPermissions
The process has not enough permissions to open the [Service].
@ IncompatibleMessagingPattern
The [Service] has the wrong messaging pattern.
@ DoesNotExist
The [Service] does not exist.
@ IncompatibleDeadline
The [Service]s deadline settings are not equal the the user given requirements.
@ UnableToGenerateUniqueNotifierId
The [UniqueNotifierId] could not be generated.
@ UnableToCreatePortTag
The tracking port tag, required for cleanup, could not be created.
WaitSetCreateError
Defines the failures that can occur when calling [WaitSetBuilder::create()].
@ InsufficientResources
Insufficient resources to create a [WaitSet].
@ InternalError
An internal error has occurred.
ReaderCreateError
@ UnableToGenerateUniqueReaderId
The [UniqueReaderId] could not be generated.
@ UnableToCreatePortTag
The tracking port tag, required for cleanup, could not be created.
RequestResponseCreateError
Errors that can occur when a new [MessagingPattern::RequestResponse] [Service] shall be created.
@ UnableToGenerateUniqueServiceId
The unique service id could not be generated.
@ UnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ TypeDefinitionHasNoRootType
The flatbuffer schema declares no root_type.
@ ServiceInCorruptedState
Some underlying resources of the [Service] are either missing, corrupted or inaccessible.
@ IsBeingCreatedByAnotherInstance
Multiple processes are trying to create the same [Service].
@ InsufficientPermissions
The process has insufficient permissions to create the [Service].
@ ServiceConfigCouldNotBeCreated
The [Service]s config could not be created and written to the static service configuration.
@ InternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
@ Interrupt
The process received an interrupt signal while cleaning up all stale resources of a dead [Node].
@ VersionMismatch
Trying to cleanup resources from a [Node] node which was using a different iceoryx2 version.
@ ResourcesAlreadyCleanedUp
Another instance has successfully cleaned up all resources.
@ InternalError
Errors that indicate either an implementation issue or a wrongly configured system.
@ AnotherInstanceIsCleaningUpTheNode
Another instance has acquired the ownership of all resources and is currently cleaning up.
@ CreateUnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ OpenDoesNotSupportRequestedAmountOfServers
The [Service] has a lower maximum number of servers than requested.
@ OpenIncompatibleOverflowBehaviorForRequests
The [Service] required overflow behavior for requests is not compatible.
@ OpenIncompatibleMessagingPattern
The [Service] has the wrong messaging pattern.
@ OpenIncompatibleOverflowBehaviorForResponses
The [Service] required overflow behavior for responses is not compatible.
@ OpenServiceInCorruptedState
Some underlying resources of the [Service] are either missing, corrupted or inaccessible.
@ CreateIsBeingCreatedByAnotherInstance
Multiple processes are trying to create the same [Service].
@ OpenDoesNotSupportRequestedAmountOfNodes
The [Service] has a lower maximum number of nodes than requested.
@ CreateTypeDefinitionHasNoRootType
The flatbuffer schema declares no root_type.
@ OpenDoesNotSupportRequestedAmountOfBorrowedResponsesPerPendingResponse
The [Service] has a lower maximum number of [Response] borrows than requested.
@ OpenIncompatibleBehaviorForFireAndForgetRequests
The [Service] does not support the required behavior for fire and forget requests.
@ OpenInsufficientPermissions
The process has not enough permissions to open the [Service].
@ OpenDoesNotSupportRequestedAmountOfClients
The [Service] has a lower maximum number of clients than requested.
@ OpenUnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ CreateServiceInCorruptedState
Some underlying resources of the [Service] are either missing, corrupted or inaccessible.
@ CreateInsufficientPermissions
The process has insufficient permissions to create the [Service].
@ CreateInternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
@ OpenTypeDefinitionHasNoRootType
The flatbuffer schema declares no root_type.
@ OpenVersionMismatch
The iceoryx2 service version does not match the one of the [Service].
@ OpenIncompatibleAttributes
The [AttributeVerifier] required attributes that the [Service] does not satisfy.
@ CreateServiceConfigCouldNotBeCreated
The [Service]s config could not be created and written to the static service configuration.
@ OpenInternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
@ OpenExceedsMaxNumberOfNodes
The maximum number of [Node]s have already opened the [Service].
@ CreateUnableToGenerateUniqueServiceId
The unique service id could not be generated.
@ OpenDoesNotSupportRequestedResponseBufferSize
The [Service] has a lower maximum response buffer size than requested.
@ OpenDoesNotExist
Service could not be openen since it does not exist.
BlackboardCreateError
Errors that can occur when a new [MessagingPattern::Blackboard] [Service] shall be created.
@ NoEntriesProvided
No key-value pairs have been provided. At least one is required.
@ UnableToGenerateUniqueServiceId
The unique service id could not be generated.
@ UnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ ServiceInCorruptedState
Some underlying resources of the [Service] are either missing, corrupted or inaccessible.
@ Interrupt
An interrupt signal was raised.
@ IsBeingCreatedByAnotherInstance
Multiple processes are trying to create the same [Service].
@ InsufficientPermissions
The process has insufficient permissions to create the [Service].
@ AlreadyExists
The [Service] already exists.
@ ServiceConfigCouldNotBeCreated
The [Service]s config could not be created and written to the static service configuration.
@ InternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
NodeCreationFailure
All failures that can occur in [NodeBuilder::create()].
@ UnableToOpenOrCreateNameGenerator
The [NameGenerator] could not be opened/created.
@ SystemCorrupted
Indicates that another "instance" on the system removed the resource required by the [Node].
@ UnableToGenerateUniqueNodeId
The [UniqueNodeId] could not be generated.
@ InsufficientPermissions
The process has insufficient permissions.
@ InterruptedBySignal
A [Signal] was raised while creating the [Node].
@ FailedToOpenClock
The [Clock] used for all time related operations could not be opened.
@ InsufficientPermissions
The process has insufficient permissions to list all [Service]s.
AttributeVerificationError
Failures that can occur when the [AttributeVerifier] fails the verification.
@ IncompatibleAttribute
A key defined via [AttributeVerifier::require()] has the wrong value.
@ NonExistingKey
A key defined via [AttributeVerifier::require_key()] is missing.
@ FixedSize
A fixed size type like [u64].
@ Dynamic
A dynamic sized type like a slice.
PublishSubscribeOpenError
Errors that can occur when an existing [MessagingPattern::PublishSubscribe] [Service] shall be opened...
@ UnableToCreateServiceTag
The [Node] service tag could not be created. Required to track resources of dead nodes when cleaning ...
@ TypeDefinitionHasNoRootType
The flatbuffer schema declares no root_type.
@ DoesNotSupportRequestedMinBufferSize
The [Service] has a lower minimum buffer size than requested.
@ VersionMismatch
The iceoryx2 service version does not match the one of the [Service].
@ DoesNotSupportRequestedMinHistorySize
The [Service] has a lower minimum history size than requested.
@ InsufficientPermissions
The process has not enough permissions to open the [Service].
@ IncompatibleTypes
The [Service] has the wrong payload type.
@ IncompatibleMessagingPattern
The [Service] has the wrong messaging pattern.
@ DoesNotExist
Service could not be openen since it does not exist.
@ IncompatibleOverflowBehavior
The [Service] required overflow behavior is not compatible.
NodeListFailure
All failures that can occur in [Node::list()].
@ Interrupt
A SIGINT signal was received.
@ InsufficientPermissions
The process has insufficient permissions.
NodeWaitFailure
Defines all possible errors that can occur during [Node::wait()].
@ Interrupt
SIGINT signal was received.
@ TerminationRequest
SIGTERM signal was received.
@ InternalError
An internal error caused by the underlying mechanism.
ServiceRemoveError
Error that can be reported when removing a [Node](crate::node::Node).
@ Interrupt
An interrupt signal was received.
@ InsufficientPermissions
The process does not have the permissions to remove the service.
@ InternalError
Errors that indicate either an implementation issue or a wrongly configured system.
WaitSetAttachmentError
@ InsufficientResources
Insufficient resources to add another attachment to the [WaitSet].
@ InsufficientCapacity
The [WaitSet]s capacity is exceeded.
@ AlreadyAttached
The attachment is already attached.
@ InternalError
An internal error has occurred.
DegradationCause
Defines the cause of a degradation and is a parameter of the [DegradationHandler].
@ ConnectionCorrupted
Connection is corrupted.
@ FailedToEstablishConnection
Connection could not be established.
RequestSendError
Failure that can be emitted when a [RequestMut] is sent.
@ ConnectionError
A failure occurred while establishing a connection to the ports counterpart port.
@ LoanErrorOutOfMemory
The data segment does not have any more memory left.
@ ConnectionBrokenSinceSenderNoLongerExists
Send was called but the corresponding port went already out of scope.
@ LoanErrorInternalFailure
Errors that indicate either an implementation issue or a wrongly configured system.
@ InternalError
An internal mechanisms failed and the data could not be delivered to all receivers.
@ UnableToDeliver
The request could not be delivered.
@ ConnectionCorrupted
A connection between two ports has been corrupted.
ConfigCreationError
Failures occurring while creating a new [Config] object with [Config::from_file()].
@ ConfigFileDoesNotExist
The provided config file does not exist.
@ InsufficientPermissions
Insufficient permissions to open the config file.
@ FailedToReadConfigFileContents
The config file could not be read.
@ UnableToDeserializeContents
Parts of the config file could not be deserialized. Indicates some kind of syntax error.
@ UnableToOpenConfigFile
The config file could not be opened due to an internal error.
EntryHandleMutError
Defines a failure that can occur when a [EntryHandleMut] is created with [Writer::entry()].
@ EntryDoesNotExist
The entry with the given key and value type does not exist.
@ HandleAlreadyExists
The [EntryHandleMut] already exists.