pub struct SimulatorEngineBuilder { /* private fields */ }Expand description
Implementations§
Source§impl SimulatorEngineBuilder
impl SimulatorEngineBuilder
Sourcepub fn max_devices(self, max: usize) -> Self
pub fn max_devices(self, max: usize) -> Self
Set the maximum number of devices.
Sourcepub fn max_points(self, max: usize) -> Self
pub fn max_points(self, max: usize) -> Self
Set the maximum number of data points.
Sourcepub fn tick_interval(self, interval: Duration) -> Self
pub fn tick_interval(self, interval: Duration) -> Self
Set the tick interval.
Sourcepub fn tick_interval_ms(self, ms: u64) -> Self
pub fn tick_interval_ms(self, ms: u64) -> Self
Set the tick interval in milliseconds.
Sourcepub fn enable_metrics(self, enable: bool) -> Self
pub fn enable_metrics(self, enable: bool) -> Self
Enable or disable metrics collection.
Sourcepub fn metrics_interval(self, interval: Duration) -> Self
pub fn metrics_interval(self, interval: Duration) -> Self
Set the metrics export interval.
Sourcepub fn preset(self, preset: EnginePreset) -> Self
pub fn preset(self, preset: EnginePreset) -> Self
Apply a configuration preset.
Sourcepub fn with_config(self, config: EngineConfig) -> Self
pub fn with_config(self, config: EngineConfig) -> Self
Use an existing configuration.
Sourcepub fn build(self) -> SimulatorEngine
pub fn build(self) -> SimulatorEngine
Build the simulator engine.
Sourcepub async fn build_and_start(self) -> Result<SimulatorEngine>
pub async fn build_and_start(self) -> Result<SimulatorEngine>
Build and start the engine.
Trait Implementations§
Source§impl Default for SimulatorEngineBuilder
impl Default for SimulatorEngineBuilder
Source§fn default() -> SimulatorEngineBuilder
fn default() -> SimulatorEngineBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimulatorEngineBuilder
impl RefUnwindSafe for SimulatorEngineBuilder
impl Send for SimulatorEngineBuilder
impl Sync for SimulatorEngineBuilder
impl Unpin for SimulatorEngineBuilder
impl UnsafeUnpin for SimulatorEngineBuilder
impl UnwindSafe for SimulatorEngineBuilder
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