pub struct WithIds<S> { /* private fields */ }Expand description
Maps an event to the associated entity id.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for WithIds<S>where
S: Freeze,
impl<S> RefUnwindSafe for WithIds<S>where
S: RefUnwindSafe,
impl<S> Send for WithIds<S>where
S: Send,
impl<S> Sync for WithIds<S>where
S: Sync,
impl<S> Unpin for WithIds<S>where
S: Unpin,
impl<S> UnwindSafe for WithIds<S>where
S: 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
Source§impl<S> EventSubscriber for S
impl<S> EventSubscriber for S
Source§fn on_modified(&self, event: &EventData<'_>)
fn on_modified(&self, event: &EventData<'_>)
Handle an incoming event Read more
Source§fn on_removed(&self, _: &Storage, event: &EventData<'_>)
fn on_removed(&self, _: &Storage, event: &EventData<'_>)
Handle an incoming event
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Returns true if the subscriber is still connected
Source§fn matches_arch(&self, _: &Archetype) -> bool
fn matches_arch(&self, _: &Archetype) -> bool
Returns true if the subscriber is interested in this archetype
Source§fn matches_component(&self, _: ComponentDesc) -> bool
fn matches_component(&self, _: ComponentDesc) -> bool
Returns true if the subscriber is interested in this component
Source§fn filter<F>(self, func: F) -> FilterFunc<Self, F>
fn filter<F>(self, func: F) -> FilterFunc<Self, F>
Filter each event before it is generated through a custom function
Source§fn filter_arch<F: StaticFilter>(self, filter: F) -> FilterArch<Self, F>where
Self: Sized,
fn filter_arch<F: StaticFilter>(self, filter: F) -> FilterArch<Self, F>where
Self: Sized,
Filter the archetypes for which the subscriber will receive events
Source§fn filter_components<I: IntoIterator<Item = ComponentKey>>(
self,
components: I,
) -> FilterComponents<Self>where
Self: Sized,
fn filter_components<I: IntoIterator<Item = ComponentKey>>(
self,
components: I,
) -> FilterComponents<Self>where
Self: Sized,
Filter a subscriber to only receive events for a specific set of components
Source§fn filter_event_kind(self, event_kind: EventKind) -> FilterEventKind<Self>where
Self: Sized,
fn filter_event_kind(self, event_kind: EventKind) -> FilterEventKind<Self>where
Self: Sized,
Filter a subscriber to only receive events of a specific kind
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more