Kurlyk
Loading...
Searching...
No Matches
SubmitResult.hpp
Go to the documentation of this file.
1
#pragma once
2
#ifndef _KURLYK_TYPES_SUBMIT_RESULT_HPP_INCLUDED
3
#define _KURLYK_TYPES_SUBMIT_RESULT_HPP_INCLUDED
4
7
8
#include <system_error>
9
10
namespace
kurlyk
{
11
14
struct
SubmitResult
{
15
bool
accepted
=
false
;
16
std::error_code
error_code
;
17
19
explicit
operator
bool()
const
{
20
return
accepted
;
21
}
22
};
23
24
}
// namespace kurlyk
25
26
#endif
// _KURLYK_TYPES_SUBMIT_RESULT_HPP_INCLUDED
kurlyk
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
kurlyk::SubmitResult
Represents the synchronous result of trying to enqueue or submit work.
Definition
SubmitResult.hpp:14
kurlyk::SubmitResult::accepted
bool accepted
Indicates whether the work item was accepted for processing.
Definition
SubmitResult.hpp:15
kurlyk::SubmitResult::error_code
std::error_code error_code
Describes the rejection reason when accepted is false.
Definition
SubmitResult.hpp:16
include
kurlyk
types
SubmitResult.hpp
Generated by
1.16.1