pub struct ResourceLimit {
pub limit: &'static str,
pub observed: usize,
pub maximum: usize,
}Expand description
Structured details for a protocol resource-limit violation.
The limit names are stable policy keys from wire::ProtocolLimits, so
callers can classify or log the exact bound that rejected a payload without
parsing the display string.
Fields§
§limit: &'static str§observed: usize§maximum: usizeTrait Implementations§
Source§impl Clone for ResourceLimit
impl Clone for ResourceLimit
Source§fn clone(&self) -> ResourceLimit
fn clone(&self) -> ResourceLimit
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 ResourceLimit
Source§impl Debug for ResourceLimit
impl Debug for ResourceLimit
impl Eq for ResourceLimit
Source§impl PartialEq for ResourceLimit
impl PartialEq for ResourceLimit
Source§fn eq(&self, other: &ResourceLimit) -> bool
fn eq(&self, other: &ResourceLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceLimit
Auto Trait Implementations§
impl Freeze for ResourceLimit
impl RefUnwindSafe for ResourceLimit
impl Send for ResourceLimit
impl Sync for ResourceLimit
impl Unpin for ResourceLimit
impl UnsafeUnpin for ResourceLimit
impl UnwindSafe for ResourceLimit
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