pub enum ScheduleMode {
Serial,
Parallel,
}Expand description
How a tick’s independent work executes. Parallel lets systems fan their
safe internal work across the job pool; Serial (or the resource being
absent, the editor’s case) keeps every system’s work on the stepping
thread – the determinism oracle and the escape hatch
(cn run --serial-schedule). Both modes must produce identical world
state; the engine’s schedule-determinism test is the gate on that claim.
Variants§
Serial
Keep every system’s work on the stepping thread.
Parallel
Let systems fan safe internal work across the job pool.
Implementations§
Source§impl ScheduleMode
impl ScheduleMode
Sourcepub fn current(resources: &Resources) -> ScheduleMode
pub fn current(resources: &Resources) -> ScheduleMode
The mode a world runs under: the published resource, or Serial when
nothing published one.
Trait Implementations§
Source§impl Clone for ScheduleMode
impl Clone for ScheduleMode
Source§fn clone(&self) -> ScheduleMode
fn clone(&self) -> ScheduleMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScheduleMode
Source§impl Debug for ScheduleMode
impl Debug for ScheduleMode
Source§impl Default for ScheduleMode
impl Default for ScheduleMode
Source§fn default() -> ScheduleMode
fn default() -> ScheduleMode
Returns the “default value” for a type. Read more
impl Eq for ScheduleMode
Source§impl PartialEq for ScheduleMode
impl PartialEq for ScheduleMode
impl StructuralPartialEq for ScheduleMode
Auto Trait Implementations§
impl Freeze for ScheduleMode
impl RefUnwindSafe for ScheduleMode
impl Send for ScheduleMode
impl Sync for ScheduleMode
impl Unpin for ScheduleMode
impl UnsafeUnpin for ScheduleMode
impl UnwindSafe for ScheduleMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.