|
co_usb
|
Type-erased reference to any event handler. More...
#include <event_handler_ref.hpp>
Public Member Functions | |
| event_handler_ref () noexcept | |
| template<detail::EventHandler HandlerTy> requires (!std::same_as<HandlerTy, event_handler_ref>) | |
| event_handler_ref (HandlerTy &handler) | |
| template<detail::EventHandler HandlerTy> requires (!std::same_as<HandlerTy, event_handler_ref>) | |
| event_handler_ref & | operator= (HandlerTy &handler) |
| event_handler_ref (event_handler_ref const &other) | |
| event_handler_ref & | operator= (event_handler_ref const &other) |
| event_handler_ref (event_handler_ref &&other) noexcept | |
| event_handler_ref & | operator= (event_handler_ref &&other) noexcept |
| ~event_handler_ref () | |
| auto | valid () const noexcept -> bool |
| auto | start (libusb_context *usb_ctx, std::stop_token stop) -> bool |
| auto | ref () noexcept -> void |
| auto | unref () noexcept -> void |
| auto | stop () -> void |
Type-erased reference to any event handler.
The purpose of this type is to be held by an object within the lifetime of which the event handler cannot be let to shutdown. An example of a situation where this would be ill-formed is if a transfer is in flight, cancellation is requested, co_usb::transfer::cancel_transfer is called on it but the event loop has already finished its shutdown and the transfer would never be cancelled nor is it completion callback would ever be called.
|
inlineexplicitnoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |