Trait live_entity::Entity

source ·
pub trait Entity: ProtoEntity<Self::Update> {
    type Update: UpdateTrait;
    type ID: IDTrait;

    const TYPE_NAME: &'static str;

    // Required method
    fn get_id(&self) -> &Self::ID;
}

Required Associated Types§

Required Associated Constants§

source

const TYPE_NAME: &'static str

Required Methods§

source

fn get_id(&self) -> &Self::ID

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<S: Singleton> Entity for SingletonEntity<S>

§

type ID = String

§

type Update = SingletonEntityUpdate<S>

source§

const TYPE_NAME: &'static str = S::TYPE_NAME