pub struct LimitViolation {
pub thread_id: ThreadId,
pub resource_type: ResourceType,
pub current_usage: u64,
pub limit: u64,
pub hard_limit: bool,
pub timestamp: Instant,
pub suggested_action: ViolationAction,
}
Expand description
Resource limit violation information.
Fields§
§thread_id: ThreadId
Thread that violated the limit
resource_type: ResourceType
Type of resource that exceeded limit
current_usage: u64
Current usage value
limit: u64
Limit that was exceeded
hard_limit: bool
Whether this was a hard or soft limit
timestamp: Instant
Timestamp of the violation
suggested_action: ViolationAction
Suggested action to take
Trait Implementations§
Source§impl Clone for LimitViolation
impl Clone for LimitViolation
Source§fn clone(&self) -> LimitViolation
fn clone(&self) -> LimitViolation
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 moreAuto Trait Implementations§
impl Freeze for LimitViolation
impl RefUnwindSafe for LimitViolation
impl Send for LimitViolation
impl Sync for LimitViolation
impl Unpin 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