Struct naia_client::EntityMut
source · 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: Replicate>(&self) -> bool
pub fn component<R: Replicate>(&mut self) -> Option<ReplicaMutWrapper<'_, R>>
pub fn insert_component<R: Replicate>(&mut self, component_ref: R) -> &mut Self
pub fn remove_component<R: Replicate>(&mut self) -> Option<R>
pub fn configure_replication(&mut self, config: ReplicationConfig) -> &mut Self
pub fn replication_config(&self) -> Option<ReplicationConfig>
Auto Trait Implementations§
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