pub struct ErrorLimitContext {
pub kind: Box<str>,
pub actual: usize,
pub limit: usize,
}Expand description
Typed actual-vs-limit payload for hard-cap failures.
Fields§
§kind: Box<str>Stable limit field name (e.g. max_css_bytes).
actual: usizeObserved value.
limit: usizeConfigured cap.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorLimitContext
impl Clone for ErrorLimitContext
Source§fn clone(&self) -> ErrorLimitContext
fn clone(&self) -> ErrorLimitContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorLimitContext
impl Debug for ErrorLimitContext
Source§impl PartialEq for ErrorLimitContext
impl PartialEq for ErrorLimitContext
impl Eq for ErrorLimitContext
impl StructuralPartialEq for ErrorLimitContext
Auto Trait Implementations§
impl Freeze for ErrorLimitContext
impl RefUnwindSafe for ErrorLimitContext
impl Send for ErrorLimitContext
impl Sync for ErrorLimitContext
impl Unpin for ErrorLimitContext
impl UnsafeUnpin for ErrorLimitContext
impl UnwindSafe for ErrorLimitContext
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