co_usb
Loading...
Searching...
No Matches
co_usb::detail::as_io_task_t Struct Reference

#include <error_protocol.hpp>

Public Types

template<typename ValTy >
using return_type = boost::capy::io_task< std::optional< ValTy > >
 

Public Member Functions

constexpr as_io_task_t () noexcept
 
template<typename U >
auto with_error (std::error_code ec) noexcept -> return_type< U >
 
template<typename U , typename... Args>
auto with_success (Args &&...args) noexcept(std::is_nothrow_constructible_v< U, Args... >) -> return_type< U >
 

Member Typedef Documentation

◆ return_type

template<typename ValTy >
using co_usb::detail::as_io_task_t::return_type = boost::capy::io_task<std::optional<ValTy> >

Constructor & Destructor Documentation

◆ as_io_task_t()

constexpr co_usb::detail::as_io_task_t::as_io_task_t ( )
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ with_error()

template<typename U >
auto co_usb::detail::as_io_task_t::with_error ( std::error_code  ec) -> return_type<U>
inlinenoexcept

◆ with_success()

template<typename U , typename... Args>
auto co_usb::detail::as_io_task_t::with_success ( Args &&...  args) -> return_type<U>
inlinenoexcept

The documentation for this struct was generated from the following file: