pub struct PerformanceTracker { /* private fields */ }
Expand description
Enhanced performance tracking with SLA monitoring
Implementations§
Source§impl PerformanceTracker
impl PerformanceTracker
pub fn new() -> Self
pub async fn record_execution( &self, task_name: &str, duration: Duration, success: bool, )
pub async fn get_recent_violations(&self) -> Vec<SLAViolation>
Trait Implementations§
Source§impl Debug for PerformanceTracker
impl Debug for PerformanceTracker
Auto Trait Implementations§
impl Freeze for PerformanceTracker
impl !RefUnwindSafe for PerformanceTracker
impl Send for PerformanceTracker
impl Sync for PerformanceTracker
impl Unpin for PerformanceTracker
impl !UnwindSafe for PerformanceTracker
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