pub struct DispatcherOptions {
pub enabled: bool,
pub coalesce: Duration,
pub max_runs: usize,
pub root_of_run: RootOfRun,
pub refuse: Option<RootRefusal>,
pub on_root_aborted: Option<RootCallback>,
pub on_delivery: Option<DeliveryCallback>,
pub retry_after: Duration,
pub note: Option<EventNote>,
pub mask: Option<MaskText>,
pub chains: Chains,
pub save_chains: Option<SaveChains>,
}Expand description
AsyncEventOptions.
Fields§
§enabled: bool§coalesce: Duration§max_runs: usizeAutomatic runs one chain (a root and the runs its events started) may start.
root_of_run: RootOfRunThe usage root of a root-lane run (its own, or the root it continues).
refuse: Option<RootRefusal>Why the root may not be re-invoked (a spent budget), or None when it may.
on_root_aborted: Option<RootCallback>A root turn was aborted (Esc): stop its jobs.
on_delivery: Option<DeliveryCallback>§retry_after: Duration§note: Option<EventNote>Ends the message of a batch with a backgrounded cell’s end (cell_done), as the cell’s result would end.
mask: Option<MaskText>Masks the summaries (none: the shipped rules only).
chains: ChainsWhat an earlier worker of the session remembered, and where changes go (none: kept in memory only).
save_chains: Option<SaveChains>Implementations§
Source§impl DispatcherOptions
impl DispatcherOptions
pub fn new(root_of_run: RootOfRun) -> DispatcherOptions
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DispatcherOptions
impl !UnwindSafe for DispatcherOptions
impl Forget for DispatcherOptions
impl Freeze for DispatcherOptions
impl Move for DispatcherOptions
impl Send for DispatcherOptions
impl Sync for DispatcherOptions
impl Unpin for DispatcherOptions
impl UnsafeUnpin for DispatcherOptions
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