pub struct PublishedEvent<E> {
pub published: Activity<EventPublisherIndex>,
pub payload: E,
}
Fields§
§published: Activity<EventPublisherIndex>
§payload: E
Trait Implementations§
Source§impl<E: Clone> Clone for PublishedEvent<E>
impl<E: Clone> Clone for PublishedEvent<E>
Source§fn clone(&self) -> PublishedEvent<E>
fn clone(&self) -> PublishedEvent<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 PublishedEvent<E>
impl<E: Debug> Debug for PublishedEvent<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 PublishedEvent<E>where
E: Freeze,
impl<E> RefUnwindSafe for PublishedEvent<E>where
E: RefUnwindSafe,
impl<E> Send for PublishedEvent<E>where
E: Send,
impl<E> Sync for PublishedEvent<E>where
E: Sync,
impl<E> Unpin for PublishedEvent<E>where
E: Unpin,
impl<E> UnwindSafe for PublishedEvent<E>where
E: UnwindSafe,
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