Trait rinecs::SystemOnceThreadLocal [−][src]
pub trait SystemOnceThreadLocal { fn run(
self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
); fn checks(
_: &mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceThreadLocalRunner>>
where
Self: Sized, { ... } fn name() -> Option<&'static str>
where
Self: Sized, { ... } fn runs_on_gpu() -> bool
where
Self: Sized, { ... } fn before() -> Vec<SystemId>
where
Self: Sized, { ... } fn after() -> Vec<SystemId>
where
Self: Sized, { ... } fn updates() -> Vec<TypeId>
where
Self: Sized, { ... } fn needs() -> Vec<TypeId>
where
Self: Sized, { ... } fn reads() -> Vec<TypeId>
where
Self: Sized, { ... } fn writes() -> Vec<TypeId>
where
Self: Sized, { ... } fn file_line_info(&self) -> &'static str { ... } }
Trait for systems that will run only once from the main thread but parallel with Send
systems.
Types implementing this trait must be Send
and are usually called Send
System
in the documentation.
Any FnOnce that receives an Entities
and a Resources
parameter in that order
can be added as a System
to the world.
Required methods
fn run(
self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
Provided methods
fn checks(
_: &mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceThreadLocalRunner>> where
Self: Sized,
[src]
_: &mut StorageRegistry
) -> Option<SystemConditionElse<SystemOnceThreadLocalRunner>> where
Self: Sized,
fn name() -> Option<&'static str> where
Self: Sized,
[src]
Self: Sized,
fn runs_on_gpu() -> bool where
Self: Sized,
[src]
Self: Sized,
fn before() -> Vec<SystemId> where
Self: Sized,
[src]
Self: Sized,
fn after() -> Vec<SystemId> where
Self: Sized,
[src]
Self: Sized,
fn updates() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn needs() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn reads() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn writes() -> Vec<TypeId> where
Self: Sized,
[src]
Self: Sized,
fn file_line_info(&self) -> &'static str
[src]
Implementors
impl<F: FnOnce(EntitiesThreadLocal<'_>, ResourcesThreadLocal<'_>) + Send> SystemOnceThreadLocal for F
[src]
impl<F: FnOnce(EntitiesThreadLocal<'_>, ResourcesThreadLocal<'_>) + Send> SystemOnceThreadLocal for F
[src]