Expand description
The account pool: the account state map behind one handle.
Every operation the caller performs on account state goes through a named method here. The callers never access the inner maps directly, so the locking discipline is owned by this type and can change without touching any call site.
Re-exportsยง
use std::collections::BTreeMap;๐use std::collections::HashMap;๐use std::time::Duration;๐use parking_lot::Mutex;๐use crate::Provider;๐use crate::UsageSnapshot;๐use crate::account::AccountKey;๐use crate::account::AccountStateMap;๐use crate::account::LoadingState;๐use crate::account::Unusable;๐use crate::account::UsageFetchStatus;๐use crate::account::account_serves;๐
Structsยง
- Account
Pool - The account state map, behind one handle.