pub struct AcpUsageStats {
pub total_calls: u64,
pub successful_calls: u64,
pub failed_calls: u64,
pub total_prompt_chars: u64,
pub total_response_chars: u64,
pub total_duration: Duration,
pub total_permission_requests: u64,
pub total_permissions_denied: u64,
}Expand description
Aggregated usage statistics across all ACP invocations.
Fields§
§total_calls: u64Total number of invocations.
successful_calls: u64Total successful invocations.
failed_calls: u64Total failed invocations.
total_prompt_chars: u64Total prompt characters sent.
total_response_chars: u64Total response characters received.
total_duration: DurationTotal wall-clock time spent in ACP calls.
total_permission_requests: u64Total permission requests received.
total_permissions_denied: u64Total permission requests denied.
Trait Implementations§
Source§impl Clone for AcpUsageStats
impl Clone for AcpUsageStats
Source§fn clone(&self) -> AcpUsageStats
fn clone(&self) -> AcpUsageStats
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 moreAuto Trait Implementations§
impl Freeze for AcpUsageStats
impl RefUnwindSafe for AcpUsageStats
impl Send for AcpUsageStats
impl Sync for AcpUsageStats
impl Unpin for AcpUsageStats
impl UnsafeUnpin for AcpUsageStats
impl UnwindSafe for AcpUsageStats
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