ServerWorldExt

Trait ServerWorldExt 

Source
pub trait ServerWorldExt {
    // Required methods
    fn persisted_resource_entity(&self) -> Option<EntityId>;
    fn persisted_resource<T: ComponentValue>(
        &self,
        component: Component<T>,
    ) -> Option<&T>;
    fn persisted_resource_mut<T: ComponentValue>(
        &mut self,
        component: Component<T>,
    ) -> Option<&mut T>;
    fn synced_resource_entity(&self) -> Option<EntityId>;
    fn synced_resource<T: ComponentValue>(
        &self,
        component: Component<T>,
    ) -> Option<&T>;
    fn synced_resource_mut<T: ComponentValue>(
        &mut self,
        component: Component<T>,
    ) -> Option<&mut T>;
}

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl ServerWorldExt for World

Implementors§