pub struct SchedulerOptions {
pub keep_alive: bool,
pub timeout: Option<Duration>,
pub threads: usize,
pub dump_graph: bool,
}Expand description
Construction parameters for the scheduler.
LFC uses target properties to set them. With the “cli” feature, generated programs also feature CLI options to override the defaults at runtime.
Fields§
§keep_alive: boolIf true, we won’t shut down the scheduler as soon as the event queue is empty, provided there are still live threads that can send messages to the scheduler asynchronously.
timeout: Option<Duration>Timeout of reactor execution. If provided, the reactor
program will be shut down at the latest at T0 + timeout.
Calls to request_stop may make the program terminate earlier.
threads: usizeMax number of threads to use in the thread pool.
If zero, uses one thread per core. Ignored unless
building with feature parallel-runtime.
dump_graph: boolIf true, dump the dependency graph to a file before starting execution.
Trait Implementations§
Source§impl Default for SchedulerOptions
impl Default for SchedulerOptions
Source§fn default() -> SchedulerOptions
fn default() -> SchedulerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchedulerOptions
impl RefUnwindSafe for SchedulerOptions
impl Send for SchedulerOptions
impl Sync for SchedulerOptions
impl Unpin for SchedulerOptions
impl UnwindSafe for SchedulerOptions
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