co_usb
Loading...
Searching...
No Matches
co_usb::ev::detail Namespace Reference

Classes

struct  handler_service
 Execution context service that owns a libusb context and an event handler. More...
 

Concepts

concept  EventHandler
 Concept defining an event handler for libusb.
 

Functions

auto get_handler_service (boost::capy::executor_ref exec) -> handler_service &
 Retrieve the handler_service from a given executor.
 
auto nothrow_get_handler_service (boost::capy::executor_ref exec) -> handler_service *
 Retrieve the handler_service from a given executor.
 

Function Documentation

◆ get_handler_service()

auto co_usb::ev::detail::get_handler_service ( boost::capy::executor_ref  exec) -> handler_service &
inline

Retrieve the handler_service from a given executor.

Parameters
execExecutor reference to query.
Returns
Reference to the handler_service instance.
Exceptions
std::runtime_errorif the service is not present.

◆ nothrow_get_handler_service()

auto co_usb::ev::detail::nothrow_get_handler_service ( boost::capy::executor_ref  exec) -> handler_service *
inline

Retrieve the handler_service from a given executor.

Parameters
execExecutor reference to query.
Returns
Reference to the handler_service instance.
Exceptions
whatevercan find_service throw.