hyperlane_plugin_cache/type.rs
1use super::*;
2
3/// Boxed `Send` future returned by async [`CacheStore`] trait methods.
4pub type CacheFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
5
6/// Fixed-size 64-way sharded single-flight inflight table.
7pub(crate) type InFlightShardArray =
8 Box<[Mutex<HashMapXxHash3_64<String, Arc<InFlightSlot>>>; CACHE_SHARD_COUNT]>;