pub struct ProviderUsageCache { /* private fields */ }Expand description
Profile-keyed provider cache for repeated UI or CLI polling.
Implementations§
Source§impl ProviderUsageCache
impl ProviderUsageCache
Sourcepub async fn collect(
&self,
client: &AgentQuotaClient,
options: CollectUsageOptions,
force_refresh: bool,
) -> Vec<ProviderUsageSnapshot>
pub async fn collect( &self, client: &AgentQuotaClient, options: CollectUsageOptions, force_refresh: bool, ) -> Vec<ProviderUsageSnapshot>
Collect through a cache keyed by every complete provider profile.
Failed profiles are not cached, allowing immediate recovery after sign-in or transient failures while successful profiles keep their cached values.
Trait Implementations§
Source§impl Clone for ProviderUsageCache
impl Clone for ProviderUsageCache
Source§impl Debug for ProviderUsageCache
impl Debug for ProviderUsageCache
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderUsageCache
impl !UnwindSafe for ProviderUsageCache
impl Freeze for ProviderUsageCache
impl Send for ProviderUsageCache
impl Sync for ProviderUsageCache
impl Unpin for ProviderUsageCache
impl UnsafeUnpin for ProviderUsageCache
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