Type Alias veloren_common_net::synced_components::inner::IsMount

source ·
pub type IsMount = Is<Mount>;

Aliased Type§

struct IsMount { /* private fields */ }

Implementations

§

impl<R> Is<R>
where R: Role,

pub fn delete(&self, data: &mut <<R as Role>::Link as Link>::DeleteData<'_>)

Trait Implementations§

source§

impl NetSync for IsMount

source§

const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity

Determines what for entities this component is synced to the client. Read more
source§

fn pre_insert(&mut self, world: &World)

Allows making modifications before the synced component is inserted on the client.
source§

fn pre_modify(&mut self, world: &World)

Allows making modifications before the synced component is overwritten with this version on the client.
source§

impl TryFrom<EcsCompPacket> for IsMount

§

type Error = InvalidType

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

fn try_from(other: EcsCompPacket) -> Result<IsMount, Self::Error>

Performs the conversion.
§

impl<R> Clone for Is<R>
where R: Role,

§

fn clone(&self) -> Is<R>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<R> Component for Is<R>
where R: Role + 'static, <R as Role>::Link: Send + Sync + 'static,

§

type Storage = DerefFlaggedStorage<Is<R>, VecStorage<Is<R>>>

Associated storage type for this component.
§

impl<R> Debug for Is<R>
where R: Debug + Role, <R as Role>::Link: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<R> Deref for Is<R>
where R: Role,

§

type Target = <R as Role>::Link

The resulting type after dereferencing.
§

fn deref(&self) -> &<Is<R> as Deref>::Target

Dereferences the value.
§

impl<'de, R> Deserialize<'de> for Is<R>
where R: Role, <R as Role>::Link: Deserialize<'de>,

§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Is<R>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<R> Serialize for Is<R>
where R: Role, <R as Role>::Link: Serialize,

§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more