Skip to main content

TableFlownodeSetCache

Type Alias TableFlownodeSetCache 

Source
pub type TableFlownodeSetCache = CacheContainer<TableId, Arc<HashMap<FlowIdent, Peer>>, CacheIdent>;
Expand description

TableFlownodeSetCache caches the [TableId] to [FlownodeSet] mapping.

Aliased Type§

pub struct TableFlownodeSetCache {
    name: String,
    cache: Cache<u32, Arc<HashMap<FlowIdent, Peer>>>,
    invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<HashMap<FlowIdent, Peer>>>, &'a [&CacheIdent]) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Send + Sync>,
    initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<HashMap<FlowIdent, Peer>>>, Error>> + Send + '_>> + Send + Sync>,
    token_filter: fn(&CacheIdent) -> bool,
    version: Arc<Atomic<usize>>,
    init_strategy: InitStrategy,
}

Fields§

§name: String§cache: Cache<u32, Arc<HashMap<FlowIdent, Peer>>>§invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<HashMap<FlowIdent, Peer>>>, &'a [&CacheIdent]) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Send + Sync>§initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<HashMap<FlowIdent, Peer>>>, Error>> + Send + '_>> + Send + Sync>§token_filter: fn(&CacheIdent) -> bool§version: Arc<Atomic<usize>>§init_strategy: InitStrategy