pub struct EventReader<E> { /* private fields */ }Expand description
Independent typed event reader whose reads own cloned payloads.
Forked readers replay from their own cursor without advancing the parent.
Implementations§
Source§impl<E: Clone + 'static> EventReader<E>
impl<E: Clone + 'static> EventReader<E>
Sourcepub fn fork(&mut self, world: &mut World) -> Result<Self, WorldError>
pub fn fork(&mut self, world: &mut World) -> Result<Self, WorldError>
Creates a sibling reader sharing this channel with an independent cursor.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for EventReader<E>
impl<E> !Send for EventReader<E>
impl<E> !Sync for EventReader<E>
impl<E> !UnwindSafe for EventReader<E>
impl<E> Freeze for EventReader<E>
impl<E> Unpin for EventReader<E>where
E: Unpin,
impl<E> UnsafeUnpin for EventReader<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