pub struct CachedObservers { /* private fields */ }Expand description
Collection of ObserverRunner for Observer registered to a particular event.
This is stored inside of Observers, specialized for each kind of observer.
Implementations§
Source§impl CachedObservers
impl CachedObservers
Sourcepub fn global_observers(&self) -> &ObserverMap
pub fn global_observers(&self) -> &ObserverMap
Observers watching for any time this event is triggered, regardless of target. These will also respond to events targeting specific components or entities
Sourcepub fn component_observers(
&self,
) -> &HashMap<ComponentId, CachedComponentObservers>
pub fn component_observers( &self, ) -> &HashMap<ComponentId, CachedComponentObservers>
Returns observers watching for triggers of events for a specific component.
Sourcepub fn entity_observers(&self) -> &EntityHashMap<ObserverMap>
pub fn entity_observers(&self) -> &EntityHashMap<ObserverMap>
Returns observers watching for triggers of events for a specific entity.
Trait Implementations§
Source§impl Debug for CachedObservers
impl Debug for CachedObservers
Source§impl Default for CachedObservers
impl Default for CachedObservers
Source§fn default() -> CachedObservers
fn default() -> CachedObservers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CachedObservers
impl RefUnwindSafe for CachedObservers
impl Send for CachedObservers
impl Sync for CachedObservers
impl Unpin for CachedObservers
impl UnwindSafe for CachedObservers
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<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.