Singleton

Trait Singleton 

Source
pub trait Singleton:
    Updatable<Self::Update>
    + Debug
    + Clone
    + Serialize
    + DeserializeOwned
    + Unpin
    + Send
    + Sync
    + 'static {
    type Update: UpdateTrait;

    const ENTITY_ID: &'static str;
    const TYPE_NAME: &'static str;
}

Required Associated Constants§

Source

const ENTITY_ID: &'static str

Source

const TYPE_NAME: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§