EventSubscriptionObject

Struct EventSubscriptionObject 

Source
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

Source

pub fn new(subscription_id: String, channel_name: String, task_id: u32) -> Self

Source

pub fn subscription_id(&self) -> &str

Source

pub fn channel_name(&self) -> &str

Source

pub fn task_id(&self) -> u32

Trait Implementations§

Source§

impl CloneOps for EventSubscriptionObject

Source§

fn custom_clone(&self) -> KernelObject

Perform a custom clone operation and return the cloned object Read more
Source§

impl EventReceiver for EventSubscriptionObject

Source§

fn has_pending_events(&self) -> bool

Check if events are pending Read more
Source§

impl EventSubscriber for EventSubscriptionObject

Source§

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>

Unregister an event filter by handler ID Read more
Source§

fn get_filters(&self) -> Vec<(usize, EventFilter)>

Get registered filters and their handler IDs Read more

Auto Trait Implementations§

§

impl !Freeze for EventSubscriptionObject

§

impl !RefUnwindSafe for EventSubscriptionObject

§

impl Send for EventSubscriptionObject

§

impl Sync for EventSubscriptionObject

§

impl Unpin for EventSubscriptionObject

§

impl UnwindSafe for EventSubscriptionObject

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.