pub struct Budgets {
pub setup: Duration,
pub drain: Option<Duration>,
}Expand description
Short setup budget and independent application-owned drain policy.
Fields§
§setup: DurationAbsolute budget shared by setup operations, restarted after exclusive drain.
drain: Option<Duration>None allows drain to take arbitrarily long. Expiry never kills work.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Budgets
impl RefUnwindSafe for Budgets
impl Send for Budgets
impl Sync for Budgets
impl Unpin for Budgets
impl UnsafeUnpin for Budgets
impl UnwindSafe for Budgets
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