pub struct AutomaticBudget {
pub max_requests: usize,
pub limits: CalcLimits,
}Expand description
Bound applied to one automatic scheduler turn.
Fields§
§max_requests: usizeMaximum queued roots attempted in this turn.
limits: CalcLimitsIncremental budget applied to each attempted root.
Implementations§
Source§impl AutomaticBudget
impl AutomaticBudget
Sourcepub const fn new(max_requests: usize, limits: CalcLimits) -> Self
pub const fn new(max_requests: usize, limits: CalcLimits) -> Self
Builds an explicit automatic-work bound.
Trait Implementations§
Source§impl Clone for AutomaticBudget
impl Clone for AutomaticBudget
Source§fn clone(&self) -> AutomaticBudget
fn clone(&self) -> AutomaticBudget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AutomaticBudget
Source§impl Debug for AutomaticBudget
impl Debug for AutomaticBudget
Source§impl Default for AutomaticBudget
impl Default for AutomaticBudget
impl Eq for AutomaticBudget
Source§impl PartialEq for AutomaticBudget
impl PartialEq for AutomaticBudget
impl StructuralPartialEq for AutomaticBudget
Auto Trait Implementations§
impl Freeze for AutomaticBudget
impl RefUnwindSafe for AutomaticBudget
impl Send for AutomaticBudget
impl Sync for AutomaticBudget
impl Unpin for AutomaticBudget
impl UnsafeUnpin for AutomaticBudget
impl UnwindSafe for AutomaticBudget
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