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§
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>
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.