pub enum EntityOwner {
Server,
Client,
Local,
}Expand description
The authority origin of a client-tracked entity.
The client assigns an owner to every entity it knows about. This mirrors
the server-side EntityOwner but uses only the variants observable from
the client’s perspective.
Variants§
Server
Originated on the server and replicated to this client.
The server is the authoritative source of all component state. The
entity may be Delegated, in which case this client (or another)
may hold temporary write authority — see EntityRef::authority.
Client
Spawned by this client.
While Private the entity is
only visible to the owning client. After the client publishes it
(Public) it replicates to peers
in the same room and scope.
Local
A local-only entity that is never replicated to the server.
Exists solely in the client’s local world; the server has no knowledge of it.
Implementations§
Trait Implementations§
Source§impl Clone for EntityOwner
impl Clone for EntityOwner
Source§fn clone(&self) -> EntityOwner
fn clone(&self) -> EntityOwner
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for EntityOwner
impl PartialEq for EntityOwner
Source§fn eq(&self, other: &EntityOwner) -> bool
fn eq(&self, other: &EntityOwner) -> bool
self and other values to be equal, and is used by ==.