pub struct LimitViolation {
pub limit: &'static str,
pub max: usize,
pub actual: usize,
}Expand description
Details of an input limit refusal, boxed to keep the common error enum small.
Fields§
§limit: &'static strWhich named limit was exceeded.
max: usizeMaximum accepted value.
actual: usizeActual input value.
Trait Implementations§
Source§impl Clone for LimitViolation
impl Clone for LimitViolation
Source§impl Debug for LimitViolation
impl Debug for LimitViolation
impl Eq for LimitViolation
Source§impl PartialEq for LimitViolation
impl PartialEq for LimitViolation
impl StructuralPartialEq for LimitViolation
Auto Trait Implementations§
impl Freeze for LimitViolation
impl RefUnwindSafe for LimitViolation
impl Send for LimitViolation
impl Sync for LimitViolation
impl Unpin for LimitViolation
impl UnsafeUnpin for LimitViolation
impl UnwindSafe for LimitViolation
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