Struct veloren_common::resources::PlayerPhysicsSetting
source · pub struct PlayerPhysicsSetting {
pub client_optin: bool,
pub server_force: bool,
}
Fields§
§client_optin: bool
true if the client wants server-authoratative physics (e.g. to use airships properly)
server_force: bool
true if the server is forcing server-authoratative physics (e.g. as punishment for wallhacking)
Implementations§
Trait Implementations§
source§impl Clone for PlayerPhysicsSetting
impl Clone for PlayerPhysicsSetting
source§fn clone(&self) -> PlayerPhysicsSetting
fn clone(&self) -> PlayerPhysicsSetting
Returns a copy 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 PlayerPhysicsSetting
impl Debug for PlayerPhysicsSetting
source§impl Default for PlayerPhysicsSetting
impl Default for PlayerPhysicsSetting
source§fn default() -> PlayerPhysicsSetting
fn default() -> PlayerPhysicsSetting
Returns the “default value” for a type. Read more
source§impl PartialEq for PlayerPhysicsSetting
impl PartialEq for PlayerPhysicsSetting
source§fn eq(&self, other: &PlayerPhysicsSetting) -> bool
fn eq(&self, other: &PlayerPhysicsSetting) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PlayerPhysicsSetting
impl Eq for PlayerPhysicsSetting
impl StructuralEq for PlayerPhysicsSetting
impl StructuralPartialEq for PlayerPhysicsSetting
Auto Trait Implementations§
impl RefUnwindSafe for PlayerPhysicsSetting
impl Send for PlayerPhysicsSetting
impl Sync for PlayerPhysicsSetting
impl Unpin for PlayerPhysicsSetting
impl UnwindSafe for PlayerPhysicsSetting
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<Context> SubContext<Context> for Context
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.