pub struct SystemTable {
pub entries: &'static [SystemEntry],
pub before_init: Option<fn(&mut PipelineContext<'_>)>,
pub prepare_events: Option<fn(&mut EventStore, Access)>,
}Expand description
A host’s system table and the load-time passes only the host can supply.
The entries name the host’s own system types, so the table is written where those types live; everything that runs it is here.
Fields§
§entries: &'static [SystemEntry]One entry per system, in run order.
before_init: Option<fn(&mut PipelineContext<'_>)>Runs over the world once its systems are built and before their init.
Absent leaves the loaded content exactly as it was added.
prepare_events: Option<fn(&mut EventStore, Access)>Pre-creates the event queues a scheduled system’s declared access can
touch, so its events_mut never grows the store’s map mid-tick. Absent
leaves every queue to be created on first use.
Implementations§
Source§impl SystemTable
impl SystemTable
Sourcepub const EMPTY: SystemTable
pub const EMPTY: SystemTable
A table with no systems and no load-time passes: what a world runs when its host contributes none.
Auto Trait Implementations§
impl Freeze for SystemTable
impl RefUnwindSafe for SystemTable
impl Send for SystemTable
impl Sync for SystemTable
impl Unpin for SystemTable
impl UnsafeUnpin for SystemTable
impl UnwindSafe for SystemTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more