|
co_usb
|
Asio/Corosio-like acceptor for devices via hotplug API. More...
#include <device_acceptor.hpp>
Public Member Functions | |
| device_acceptor (boost::capy::executor_ref exec, std::pmr::memory_resource *memres=std::pmr::get_default_resource()) | |
| ~device_acceptor () | |
| auto | shutdown () -> void |
| auto | bind (device_triplet triplet, std::error_code &ec) -> void |
| auto | bind (device_triplet triplet) -> std::error_code |
| auto | listen () -> std::error_code |
| auto | close () -> std::error_code |
| auto | accept () -> boost::capy::io_task< device_ref > |
| device_acceptor (const device_acceptor &)=delete | |
| device_acceptor & | operator= (const device_acceptor &)=delete |
| device_acceptor (device_acceptor &&)=delete | |
| device_acceptor & | operator= (device_acceptor &&)=delete |
Asio/Corosio-like acceptor for devices via hotplug API.
Provides a common interface for waiting on hotplug arrive events. The acceptor operates with a single hotplug callback with target set to a device triplet values provided via bind method.
accept was active, it will be removed from the internal list and will have to be reconnected to be accepted again.listen was called will be collected into acceptor's storage, thus allowing to avoid a suspension on accept if the device is already connected.
|
inlineexplicit |
|
inline |
|
delete |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
delete |
|
inline |