pub struct SyncBudget {
pub max_passes: u32,
pub max_elapsed: Duration,
pub max_inline_delay_secs: f64,
}Expand description
What one sync_once call may spend.
Fields§
§max_passes: u32Most passes in one call. 1 (the default) is one pass.
max_elapsed: DurationWall-clock allowance, checked between passes (a running pass is not interrupted).
max_inline_delay_secs: f64Another pass runs only after a Pending pass that made progress, and only when the engine
asks to wait no longer than this. The default 0.0 never re-runs (the engine’s pending
floor is 30 s), so a host that wants a drain loop raises it knowingly. This function never
sleeps: a re-run that the engine would defer is reported as Deferred and ends the call.
Trait Implementations§
Source§impl Clone for SyncBudget
impl Clone for SyncBudget
Source§impl Debug for SyncBudget
impl Debug for SyncBudget
Source§impl Default for SyncBudget
impl Default for SyncBudget
Source§impl PartialEq for SyncBudget
impl PartialEq for SyncBudget
impl StructuralPartialEq for SyncBudget
Auto Trait Implementations§
impl Forget for SyncBudget
impl Freeze for SyncBudget
impl RefUnwindSafe for SyncBudget
impl Send for SyncBudget
impl Sync for SyncBudget
impl Unpin for SyncBudget
impl UnsafeUnpin for SyncBudget
impl UnwindSafe for SyncBudget
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