xentara-utils v2.0.4
The Xentara Utility Library
|
Marker for timeout value. More...
#include <xentara/utils/network/Options.hpp>
Public Member Functions | |
constexpr | Timeout (std::optional< std::chrono::nanoseconds > timeout) |
Conversion constructor from a raw timeout value. | |
constexpr | operator std::optional< std::chrono::nanoseconds > () const |
Conversion back to a raw timeout value. | |
Marker for timeout value.
This marker is used to specify a timeout on certain socket operations.
Just cast the timeout value to Timeout:
|
explicitconstexpr |
Conversion constructor from a raw timeout value.
|
explicitconstexpr |
Conversion back to a raw timeout value.