pub struct EntityMut<'s, E: Copy + Eq + Hash + Send + Sync, W: WorldMutType<E>> { /* private fields */ }Implementations§
Source§impl<'s, E: Copy + Eq + Hash + Send + Sync, W: WorldMutType<E>> EntityMut<'s, E, W>
impl<'s, E: Copy + Eq + Hash + Send + Sync, W: WorldMutType<E>> EntityMut<'s, E, W>
pub fn id(&self) -> E
pub fn despawn(&mut self)
pub fn has_component<R: ReplicatedComponent>(&self) -> bool
pub fn component<R: ReplicatedComponent>( &mut self, ) -> Option<ReplicaMutWrapper<'_, R>>
pub fn insert_component<R: ReplicatedComponent>( &mut self, component_ref: R, ) -> &mut Self
pub fn insert_components<R: ReplicatedComponent>( &mut self, component_refs: Vec<R>, ) -> &mut Self
pub fn remove_component<R: ReplicatedComponent>(&mut self) -> Option<R>
pub fn configure_replication(&mut self, config: ReplicationConfig) -> &mut Self
pub fn replication_config(&self) -> Option<ReplicationConfig>
pub fn enter_room(&mut self, room_key: &RoomKey) -> &mut Self
pub fn leave_room(&mut self, room_key: &RoomKey) -> &mut Self
Auto Trait Implementations§
impl<'s, E, W> Freeze for EntityMut<'s, E, W>
impl<'s, E, W> !RefUnwindSafe for EntityMut<'s, E, W>
impl<'s, E, W> Send for EntityMut<'s, E, W>where
W: Send,
impl<'s, E, W> Sync for EntityMut<'s, E, W>where
W: Sync,
impl<'s, E, W> Unpin for EntityMut<'s, E, W>
impl<'s, E, W> !UnwindSafe for EntityMut<'s, E, W>
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