pub struct EventRegistry<E: Event> { /* private fields */ }Expand description
Explicit subscriber registry for a typed event bus.
Implementations§
Source§impl<E: Event> EventRegistry<E>
impl<E: Event> EventRegistry<E>
Sourcepub fn new(config: EventBusConfig) -> Self
pub fn new(config: EventBusConfig) -> Self
Create an empty registry with a bounded bus.
Sourcepub fn register_subscriber(&self) -> Subscriber<E>
pub fn register_subscriber(&self) -> Subscriber<E>
Explicitly register a subscriber.
Trait Implementations§
Source§impl<E: Event> Debug for EventRegistry<E>
impl<E: Event> Debug for EventRegistry<E>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for EventRegistry<E>
impl<E> !UnwindSafe for EventRegistry<E>
impl<E> Freeze for EventRegistry<E>
impl<E> Send for EventRegistry<E>
impl<E> Sync for EventRegistry<E>
impl<E> Unpin for EventRegistry<E>
impl<E> UnsafeUnpin for EventRegistry<E>
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