pub struct EventSubscriptionObject {
subscription_id: String,
channel_name: String,
task_id: u32,
filters: Mutex<HashMap<usize, EventFilter>>,
}Expand description
EventSubscription implementation for KernelObject integration
Fields§
§subscription_id: String§channel_name: String§task_id: u32§filters: Mutex<HashMap<usize, EventFilter>>Local registry of filters keyed by handler ID for this subscription
Implementations§
Source§impl EventSubscriptionObject
impl EventSubscriptionObject
pub fn new(subscription_id: String, channel_name: String, task_id: u32) -> Self
pub fn subscription_id(&self) -> &str
pub fn channel_name(&self) -> &str
pub fn task_id(&self) -> u32
Trait Implementations§
Source§impl CloneOps for EventSubscriptionObject
impl CloneOps for EventSubscriptionObject
Source§fn custom_clone(&self) -> KernelObject
fn custom_clone(&self) -> KernelObject
Perform a custom clone operation and return the cloned object Read more
Source§impl EventReceiver for EventSubscriptionObject
impl EventReceiver for EventSubscriptionObject
Source§fn has_pending_events(&self) -> bool
fn has_pending_events(&self) -> bool
Check if events are pending Read more
Source§impl EventSubscriber for EventSubscriptionObject
impl EventSubscriber for EventSubscriptionObject
Source§fn register_filter(
&self,
filter: EventFilter,
handler_id: usize,
) -> Result<(), &'static str>
fn register_filter( &self, filter: EventFilter, handler_id: usize, ) -> Result<(), &'static str>
Register an event filter with a handler ID Read more
Source§fn unregister_filter(&self, handler_id: usize) -> Result<(), &'static str>
fn unregister_filter(&self, handler_id: usize) -> Result<(), &'static str>
Unregister an event filter by handler ID Read more
Source§fn get_filters(&self) -> Vec<(usize, EventFilter)>
fn get_filters(&self) -> Vec<(usize, EventFilter)>
Get registered filters and their handler IDs Read more