pub struct IndexedEvent<E> {
pub index: usize,
pub event: E,
}Expand description
Associates an event with the index of the machine that should receive it.
Fields§
§index: usizeIndex in the pool’s storage.
event: EEvent to dispatch.
Trait Implementations§
Source§impl<E: Clone> Clone for IndexedEvent<E>
impl<E: Clone> Clone for IndexedEvent<E>
Source§fn clone(&self) -> IndexedEvent<E>
fn clone(&self) -> IndexedEvent<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexedEvent<E>
impl<E: Debug> Debug for IndexedEvent<E>
impl<E: Eq> Eq for IndexedEvent<E>
Source§impl<E: PartialEq> PartialEq for IndexedEvent<E>
impl<E: PartialEq> PartialEq for IndexedEvent<E>
impl<E: PartialEq> StructuralPartialEq for IndexedEvent<E>
Auto Trait Implementations§
impl<E> Freeze for IndexedEvent<E>where
E: Freeze,
impl<E> RefUnwindSafe for IndexedEvent<E>where
E: RefUnwindSafe,
impl<E> Send for IndexedEvent<E>where
E: Send,
impl<E> Sync for IndexedEvent<E>where
E: Sync,
impl<E> Unpin for IndexedEvent<E>where
E: Unpin,
impl<E> UnsafeUnpin for IndexedEvent<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for IndexedEvent<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