xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::network::Timeout Class Reference

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.
 

Detailed Description

Marker for timeout value.

This marker is used to specify a timeout on certain socket operations.

Just cast the timeout value to Timeout:

Marker for timeout value.
Definition Options.hpp:181
T make_unique(T... args)

Constructor & Destructor Documentation

◆ Timeout()

constexpr xentara::utils::network::Timeout::Timeout ( std::optional< std::chrono::nanoseconds timeout)
explicitconstexpr

Conversion constructor from a raw timeout value.

Member Function Documentation

◆ operator std::optional< std::chrono::nanoseconds >()

constexpr xentara::utils::network::Timeout::operator std::optional< std::chrono::nanoseconds > ( ) const
explicitconstexpr

Conversion back to a raw timeout value.