EntityMut

Struct 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>

Source

pub fn id(&self) -> E

Source

pub fn despawn(&mut self)

Source

pub fn has_component<R: ReplicatedComponent>(&self) -> bool

Source

pub fn component<R: ReplicatedComponent>( &mut self, ) -> Option<ReplicaMutWrapper<'_, R>>

Source

pub fn insert_component<R: ReplicatedComponent>( &mut self, component_ref: R, ) -> &mut Self

Source

pub fn insert_components<R: ReplicatedComponent>( &mut self, component_refs: Vec<R>, ) -> &mut Self

Source

pub fn remove_component<R: ReplicatedComponent>(&mut self) -> Option<R>

Source

pub fn configure_replication(&mut self, config: ReplicationConfig) -> &mut Self

Source

pub fn replication_config(&self) -> Option<ReplicationConfig>

Source

pub fn authority(&self) -> Option<EntityAuthStatus>

Source

pub fn enter_room(&mut self, room_key: &RoomKey) -> &mut Self

Source

pub fn leave_room(&mut self, room_key: &RoomKey) -> &mut Self

Auto Trait Implementations§

§

impl<'s, E, W> Freeze for EntityMut<'s, E, W>
where W: Freeze, E: Freeze,

§

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>
where W: Unpin, E: Unpin,

§

impl<'s, E, W> !UnwindSafe for EntityMut<'s, E, W>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,