Skip to main content

Module pool

Module pool 

Source
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ยง

AccountPool
The account state map, behind one handle.