pub struct LocalStats { /* private fields */ }Expand description
Tracks performance statistics for a single VibeNode.
This struct uses atomic counters and rolling windows to provide insights into the performance and workload of an individual node.
Implementations§
Source§impl LocalStats
impl LocalStats
Sourcepub fn task_submitted(&self)
pub fn task_submitted(&self)
Increments the count of submitted tasks.
Sourcepub fn record_task_outcome(&self, duration: u64, success: bool)
pub fn record_task_outcome(&self, duration: u64, success: bool)
Records the outcome of a finished task.
Trait Implementations§
Source§impl Debug for LocalStats
impl Debug for LocalStats
Auto Trait Implementations§
impl !Freeze for LocalStats
impl RefUnwindSafe for LocalStats
impl Send for LocalStats
impl Sync for LocalStats
impl Unpin for LocalStats
impl UnsafeUnpin for LocalStats
impl UnwindSafe for LocalStats
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