pub struct EngineConfig { /* private fields */ }Expand description
The top-level engine configuration containing rendering and scheduler settings.
Passed to Engine::new to configure the engine instance.
Implementations§
Source§impl EngineConfig
Implements construction helpers for EngineConfig.
impl EngineConfig
Implements construction helpers for EngineConfig.
Sourcepub fn create(render: RenderConfig) -> EngineConfig
pub fn create(render: RenderConfig) -> EngineConfig
Sourcepub fn with_scheduler(self, scheduler: SchedulerConfig) -> EngineConfig
pub fn with_scheduler(self, scheduler: SchedulerConfig) -> EngineConfig
Source§impl EngineConfig
impl EngineConfig
pub fn get_render(&self) -> RenderConfig
pub fn get_mut_render(&mut self) -> &mut RenderConfig
pub fn set_render(&mut self, val: RenderConfig) -> &mut Self
pub fn get_scheduler(&self) -> SchedulerConfig
pub fn get_mut_scheduler(&mut self) -> &mut SchedulerConfig
pub fn set_scheduler(&mut self, val: SchedulerConfig) -> &mut Self
Source§impl EngineConfig
impl EngineConfig
pub fn new(render: RenderConfig) -> Self
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 moreSource§impl Debug for EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
Implements Default for EngineConfig with default render and scheduler configs.
impl Default for EngineConfig
Implements Default for EngineConfig with default render and scheduler configs.
Source§fn default() -> EngineConfig
fn default() -> EngineConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for EngineConfig
impl PartialEq for EngineConfig
impl StructuralPartialEq for EngineConfig
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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