Struct naia_client::EntityRef
source · pub struct EntityRef<'s, E: Copy + Eq + Hash + Send + Sync, W: WorldRefType<E>> { /* private fields */ }
Implementations§
source§impl<'s, E: Copy + Eq + Hash + Send + Sync, W: WorldRefType<E>> EntityRef<'s, E, W>
impl<'s, E: Copy + Eq + Hash + Send + Sync, W: WorldRefType<E>> EntityRef<'s, E, W>
pub fn new(client: &'s Client<E>, world: W, entity: &E) -> Self
pub fn id(&self) -> E
pub fn has_component<R: Replicate>(&self) -> bool
pub fn component<R: Replicate>(&self) -> Option<ReplicaRefWrapper<'_, R>>
pub fn replication_config(&self) -> Option<ReplicationConfig>
Auto Trait Implementations§
impl<'s, E, W> !RefUnwindSafe for EntityRef<'s, E, W>
impl<'s, E, W> Send for EntityRef<'s, E, W>where
W: Send,
impl<'s, E, W> Sync for EntityRef<'s, E, W>where
W: Sync,
impl<'s, E, W> Unpin for EntityRef<'s, E, W>
impl<'s, E, W> !UnwindSafe for EntityRef<'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