Skip to main content

hyperlane_plugin_session/
type.rs

1use super::*;
2
3/// Boxed `Send` future returned by async [`SessionStore`] trait methods.
4pub type SessionFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
5
6/// Thread-safe shared reference to a pluggable [`SessionStore`].
7pub type SharedSessionStore = Arc<dyn SessionStore>;
8
9/// Fixed-size 64-way sharded session storage array.
10pub(crate) type SessionShardArray =
11    Box<[RwLock<HashMapXxHash3_64<String, StoredSession>>; SESSION_SHARD_COUNT]>;