pub struct PairBudget {
pub used: usize,
pub max: usize,
pub resource: &'static str,
}Expand description
A count of candidate pairs against a limit, shared by the steps of one request.
Fields§
§used: usizePairs counted so far.
max: usizePairs allowed.
resource: &'static strThe resource named by GeomError::BudgetExceeded when exceeded.
Implementations§
Trait Implementations§
Source§impl Clone for PairBudget
impl Clone for PairBudget
Source§fn clone(&self) -> PairBudget
fn clone(&self) -> PairBudget
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 moreAuto Trait Implementations§
impl Freeze for PairBudget
impl RefUnwindSafe for PairBudget
impl Send for PairBudget
impl Sync for PairBudget
impl Unpin for PairBudget
impl UnsafeUnpin for PairBudget
impl UnwindSafe for PairBudget
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