conduit 0.6.0
Modern C++23 header-only event-dispatching / event-transport library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
conduit::detail::ListenerEntry Struct Reference

#include <bus.hpp>

Collaboration diagram for conduit::detail::ListenerEntry:
Collaboration graph
[legend]

Public Member Functions

int priority () const noexcept
 
bool operator== (const ListenerEntry &other) const noexcept
 Identity is the subscription id — that's what the bus uses to dedupe and remove a listener; two distinct subscriptions with the same handler must still be distinct.
 

Public Attributes

SubscriptionId id
 
std::function< void(const EventEnvelope &)> handler
 
std::string name_or_pattern
 
bool is_pattern = false
 
int listener_priority = comms::Prioritized::DEFAULT_PRIORITY
 

Member Function Documentation

◆ operator==()

bool conduit::detail::ListenerEntry::operator== ( const ListenerEntry other) const
inlinenoexcept

Identity is the subscription id — that's what the bus uses to dedupe and remove a listener; two distinct subscriptions with the same handler must still be distinct.

◆ priority()

int conduit::detail::ListenerEntry::priority ( ) const
inlinenoexcept

Member Data Documentation

◆ handler

std::function<void(const EventEnvelope&)> conduit::detail::ListenerEntry::handler

◆ id

SubscriptionId conduit::detail::ListenerEntry::id

◆ is_pattern

bool conduit::detail::ListenerEntry::is_pattern = false

◆ listener_priority

int conduit::detail::ListenerEntry::listener_priority = comms::Prioritized::DEFAULT_PRIORITY

◆ name_or_pattern

std::string conduit::detail::ListenerEntry::name_or_pattern

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