Struct EntityProviders
pub struct EntityProviders<T, C>where
T: 'static + ?Sized,
C: 'static,{ /* private fields */ }Expand description
An entity’s providers of one capability (entity_providers).
Implementations§
§impl<T, C> EntityProviders<T, C>
impl<T, C> EntityProviders<T, C>
pub fn ask(self, host: &mut dyn ServerHost, game: bool) -> Option<Capability<T>>
pub fn ask(self, host: &mut dyn ServerHost, game: bool) -> Option<Capability<T>>
A mod’s handler where the game would answer with its own unless a mod comes first: one
registered before_game, else, where the game has no answer (game), the first mod’s.
Auto Trait Implementations§
impl<T, C> !RefUnwindSafe for EntityProviders<T, C>
impl<T, C> !UnwindSafe for EntityProviders<T, C>
impl<T, C> Freeze for EntityProviders<T, C>
impl<T, C> Send for EntityProviders<T, C>
impl<T, C> Sync for EntityProviders<T, C>
impl<T, C> Unpin for EntityProviders<T, C>
impl<T, C> UnsafeUnpin for EntityProviders<T, C>where
C: UnsafeUnpin,
T: ?Sized,
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