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

Classes

struct  as_exception_t
 Exception error protocol. More...
 
struct  as_io_result_t
 
struct  as_io_task_t
 
struct  as_optional_t
 Error protocol signaling error into a given error code reference and returning an optional. More...
 
struct  flag_type
 Generic struct for flag types. More...
 

Concepts

concept  DeviceHandlePointer
 A type which can provide libusb_device_handle *.
 
concept  DeviceHandleSource
 A type which can provide a co_usb::detail::DeviceHandlePointer.
 
concept  ErrorProtocol
 Result protocol for signaling error via error code or full completion.
 

Functions

auto raw_context (::co_usb::ev::detail::handler_service *srv)
 Proxy accessor to context ctor.
 
template<DeviceHandlePointer Ty>
auto device_handle_of (Ty &&devh) -> libusb_device_handle *
 Obtains a libusb_device_handle * from a co_usb::detail::DeviceHandlePointer.
 

Function Documentation

◆ raw_context()

auto co_usb::detail::raw_context ( ::co_usb::ev::detail::handler_service srv)
inline

Proxy accessor to context ctor.