pub struct SubscriptionRegistry { /* private fields */ }Expand description
SubscriptionRegistry — combines HomeFactory with per-object listeners.
Implementations§
Source§impl SubscriptionRegistry
impl SubscriptionRegistry
Sourcepub fn home_mut(&mut self) -> &mut HomeFactory
pub fn home_mut(&mut self) -> &mut HomeFactory
Mutable reference to the HomeFactory.
Sourcepub fn register_object_listener(
&mut self,
id: ObjectId,
listener: Box<dyn ObjectListener>,
)
pub fn register_object_listener( &mut self, id: ObjectId, listener: Box<dyn ObjectListener>, )
Registers a per-object listener.
Sourcepub fn notify(&mut self, obj: &ObjectRef, kind: ObjectChangeKind)
pub fn notify(&mut self, obj: &ObjectRef, kind: ObjectChangeKind)
Notify all relevant listeners (home and object level).
Trait Implementations§
Source§impl Debug for SubscriptionRegistry
impl Debug for SubscriptionRegistry
Source§impl Default for SubscriptionRegistry
impl Default for SubscriptionRegistry
Source§fn default() -> SubscriptionRegistry
fn default() -> SubscriptionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SubscriptionRegistry
impl !UnwindSafe for SubscriptionRegistry
impl Freeze for SubscriptionRegistry
impl Send for SubscriptionRegistry
impl Sync for SubscriptionRegistry
impl Unpin for SubscriptionRegistry
impl UnsafeUnpin for SubscriptionRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more