pub struct PerformanceThresholds {
pub cpu_threshold_percent: f64,
pub memory_threshold_mb: f64,
pub function_call_threshold_ms: u64,
pub async_task_threshold_ms: u64,
pub allocation_threshold_bytes: usize,
}
Expand description
Performance thresholds
Fields§
§cpu_threshold_percent: f64
CPU usage threshold (percentage)
memory_threshold_mb: f64
Memory usage threshold (MB)
function_call_threshold_ms: u64
Function call threshold (milliseconds)
async_task_threshold_ms: u64
Async task threshold (milliseconds)
allocation_threshold_bytes: usize
Allocation size threshold (bytes)
Trait Implementations§
Source§impl Clone for PerformanceThresholds
impl Clone for PerformanceThresholds
Source§fn clone(&self) -> PerformanceThresholds
fn clone(&self) -> PerformanceThresholds
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 PerformanceThresholds
impl Debug for PerformanceThresholds
Source§impl<'de> Deserialize<'de> for PerformanceThresholds
impl<'de> Deserialize<'de> for PerformanceThresholds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PerformanceThresholds
impl RefUnwindSafe for PerformanceThresholds
impl Send for PerformanceThresholds
impl Sync for PerformanceThresholds
impl Unpin for PerformanceThresholds
impl UnwindSafe for PerformanceThresholds
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