pub struct HomeFactory { /* private fields */ }Expand description
HomeFactory — Spec §B.3.1.
Implementations§
Source§impl HomeFactory
impl HomeFactory
Sourcepub fn register_home_listener(
&mut self,
topic: String,
listener: Box<dyn HomeListener>,
)
pub fn register_home_listener( &mut self, topic: String, listener: Box<dyn HomeListener>, )
Registers a HomeListener for a topic.
Sourcepub fn listener_count(&self, topic: &str) -> usize
pub fn listener_count(&self, topic: &str) -> usize
Number of listeners for a topic.
Sourcepub fn fanout(&mut self, obj: &ObjectRef, kind: ObjectChangeKind)
pub fn fanout(&mut self, obj: &ObjectRef, kind: ObjectChangeKind)
Fan-out of an object event to all listeners of the topic.
Trait Implementations§
Source§impl Debug for HomeFactory
impl Debug for HomeFactory
Source§impl Default for HomeFactory
impl Default for HomeFactory
Source§fn default() -> HomeFactory
fn default() -> HomeFactory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HomeFactory
impl !UnwindSafe for HomeFactory
impl Freeze for HomeFactory
impl Send for HomeFactory
impl Sync for HomeFactory
impl Unpin for HomeFactory
impl UnsafeUnpin for HomeFactory
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