pub struct EventEmitter<ContentType, TopicId: PartialEq + Clone> { /* private fields */ }Expand description
EventEmitter is a struct that can be used to publish events to the event bus. It supposed to be used by the publisher.
Implementations§
Source§impl<ContentType, TopicId: PartialEq + Clone> EventEmitter<ContentType, TopicId>
impl<ContentType, TopicId: PartialEq + Clone> EventEmitter<ContentType, TopicId>
pub fn with_bus(bus: &EventBus<ContentType, TopicId>) -> Self
Auto Trait Implementations§
impl<ContentType, TopicId> Freeze for EventEmitter<ContentType, TopicId>
impl<ContentType, TopicId> RefUnwindSafe for EventEmitter<ContentType, TopicId>
impl<ContentType, TopicId> Send for EventEmitter<ContentType, TopicId>
impl<ContentType, TopicId> Sync for EventEmitter<ContentType, TopicId>
impl<ContentType, TopicId> Unpin for EventEmitter<ContentType, TopicId>
impl<ContentType, TopicId> UnwindSafe for EventEmitter<ContentType, TopicId>
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