pub enum AuthorityModel {
ServerAuthority,
ClientAuthority,
SharedAuthority,
}Expand description
Which peer has authoritative control over a given entity or subsystem.
Variants§
ServerAuthority
Server is always right; clients predict but must defer to server.
ClientAuthority
Client owns the entity; server trusts client (cheating risk).
Negotiated per-property (e.g. physics server-auth, animation client-auth).
Trait Implementations§
Source§impl Clone for AuthorityModel
impl Clone for AuthorityModel
Source§fn clone(&self) -> AuthorityModel
fn clone(&self) -> AuthorityModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorityModel
impl Debug for AuthorityModel
Source§impl PartialEq for AuthorityModel
impl PartialEq for AuthorityModel
impl Copy for AuthorityModel
impl Eq for AuthorityModel
impl StructuralPartialEq for AuthorityModel
Auto Trait Implementations§
impl Freeze for AuthorityModel
impl RefUnwindSafe for AuthorityModel
impl Send for AuthorityModel
impl Sync for AuthorityModel
impl Unpin for AuthorityModel
impl UnsafeUnpin for AuthorityModel
impl UnwindSafe for AuthorityModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.