pub struct AppConfig { /* private fields */ }Expand description
Complete frozen configuration for one Sim;Logic application.
Implementations§
Source§impl AppConfig
impl AppConfig
Sourcepub fn set_time(&mut self, time: TimeConfig) -> &mut Self
pub fn set_time(&mut self, time: TimeConfig) -> &mut Self
Replaces the fixed-step time configuration.
Sourcepub fn set_entity_limit(
&mut self,
limit: usize,
) -> Result<&mut Self, AppConfigError>
pub fn set_entity_limit( &mut self, limit: usize, ) -> Result<&mut Self, AppConfigError>
Replaces the maximum managed entity count.
Sourcepub fn set_command_limit(
&mut self,
limit: usize,
) -> Result<&mut Self, AppConfigError>
pub fn set_command_limit( &mut self, limit: usize, ) -> Result<&mut Self, AppConfigError>
Replaces the maximum combined command count for one stage.
Sourcepub fn set_event_limit(
&mut self,
limit: usize,
) -> Result<&mut Self, AppConfigError>
pub fn set_event_limit( &mut self, limit: usize, ) -> Result<&mut Self, AppConfigError>
Replaces the maximum event count for each type in one stage invocation.
Sourcepub fn set_input_event_limit(
&mut self,
limit: usize,
) -> Result<&mut Self, AppConfigError>
pub fn set_input_event_limit( &mut self, limit: usize, ) -> Result<&mut Self, AppConfigError>
Replaces the maximum physical events per frame, generated logical edges per frame, and retained logical edges for a later FixedUpdate delivery.
A frame exceeding any bound is rejected before input state changes. Generated edges include synthetic mouse releases on pointer leave; their frame bound still applies while fixed updates are paused.
Sourcepub fn set_lifecycle_trace_limit(
&mut self,
limit: usize,
) -> Result<&mut Self, AppConfigError>
pub fn set_lifecycle_trace_limit( &mut self, limit: usize, ) -> Result<&mut Self, AppConfigError>
Replaces the maximum retained WorldEnter/WorldExit diagnostic records.
Once full, the trace evicts its oldest record before retaining a new one. This affects diagnostics only, never World lifecycle execution.
Sourcepub fn set_application_resource_limit(
&mut self,
limit: usize,
) -> Result<&mut Self, AppConfigError>
pub fn set_application_resource_limit( &mut self, limit: usize, ) -> Result<&mut Self, AppConfigError>
Replaces the maximum number of distinct Application Resource types.
This bounds registry entries, not heap memory retained inside arbitrary user values.
Sourcepub fn set_render_limits(&mut self, limits: RenderLimits) -> &mut Self
pub fn set_render_limits(&mut self, limits: RenderLimits) -> &mut Self
Replaces renderer-independent extraction and presentation limits.
Sourcepub fn set_three_d_render_limits(
&mut self,
limits: ThreeDRenderLimits,
) -> &mut Self
pub fn set_three_d_render_limits( &mut self, limits: ThreeDRenderLimits, ) -> &mut Self
Replaces opt-in cuboid, triangle, and physical depth-target limits.
All other rendering limits are preserved. Final composition still requires a target pass and color texture space in FrameLimits.
Sourcepub fn set_image_asset_limits(&mut self, limits: ImageAssetLimits) -> &mut Self
pub fn set_image_asset_limits(&mut self, limits: ImageAssetLimits) -> &mut Self
Replaces setup-time image count, dimension, and retained-pixel limits.
Zero limits are valid and disable the corresponding allowance. This does not enable screen-image extraction or raise presentation budgets.
Sourcepub fn set_text_limits(&mut self, limits: TextLimits) -> &mut Self
pub fn set_text_limits(&mut self, limits: TextLimits) -> &mut Self
Replaces setup-time font count and retained font-byte limits.
Does not raise render limits or initialize a window/device. Use
headless-text without defaults to exclude GPU/window dependencies;
text additionally compiles Engine’s retained GPU text bridge.
Trait Implementations§
impl Copy for AppConfig
impl StructuralPartialEq for AppConfig
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> FromTemplate for T
impl<T> FromTemplate for T
Source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Template for T
impl<T> Template for T
Source§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
entity context to produce a Template::Output.Source§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clone.