pub struct WindowBreached {
pub window_name: String,
pub axis: &'static str,
pub attempted: f64,
pub cap: f64,
}Expand description
Raised by BudgetWindows::record when a record would push any
window’s running total past its cap.
Fields§
§window_name: StringName of the window that breached (the first one if multiple).
axis: &'static str“tokens” or “usd”.
attempted: f64Running total + record delta.
cap: f64The configured cap on that axis.
Trait Implementations§
Source§impl Debug for WindowBreached
impl Debug for WindowBreached
Source§impl Display for WindowBreached
impl Display for WindowBreached
Source§impl Error for WindowBreached
impl Error for WindowBreached
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for WindowBreached
impl RefUnwindSafe for WindowBreached
impl Send for WindowBreached
impl Sync for WindowBreached
impl Unpin for WindowBreached
impl UnsafeUnpin for WindowBreached
impl UnwindSafe for WindowBreached
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