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§

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>> + Sync + Send>,
    initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<HashMap<FlowIdent, Peer>>>, Error>> + Send + '_>> + Sync + Send>,
    token_filter: fn(&CacheIdent) -> bool,
}

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>> + Sync + Send>§initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<HashMap<FlowIdent, Peer>>>, Error>> + Send + '_>> + Sync + Send>§token_filter: fn(&CacheIdent) -> bool