xentara-utils v1.2.1
Xentara utilities library
|
Marker for timeout value. More...
#include <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.