pub struct EventPubSub<E> { /* private fields */ }
Implementations§
Source§impl<E> EventPubSub<E>
impl<E> EventPubSub<E>
pub fn new( publisher_index: impl Into<EventPublisherIndex>, channel_capacity: usize, ) -> (Self, EventSubscriber<E>)
pub fn publish_event(&self, payload: E)
Trait Implementations§
Source§impl<E: Clone> Clone for EventPubSub<E>
impl<E: Clone> Clone for EventPubSub<E>
Source§fn clone(&self) -> EventPubSub<E>
fn clone(&self) -> EventPubSub<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Debug> Debug for EventPubSub<E>
impl<E: Debug> Debug for EventPubSub<E>
Source§impl<E> EventDispatcher<PublishedEvent<E>> for EventPubSub<E>
impl<E> EventDispatcher<PublishedEvent<E>> for EventPubSub<E>
fn dispatch_event(&self, event: PublishedEvent<E>)
Auto Trait Implementations§
impl<E> Freeze for EventPubSub<E>
impl<E> RefUnwindSafe for EventPubSub<E>
impl<E> Send for EventPubSub<E>where
E: Send,
impl<E> Sync for EventPubSub<E>where
E: Send,
impl<E> Unpin for EventPubSub<E>
impl<E> UnwindSafe for EventPubSub<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