moonpool_sim/sim/
wakers.rs1use std::collections::BTreeMap;
7use std::task::Waker;
8
9use crate::network::sim::{ConnectionId, ListenerId};
10use crate::sim::state::FileId;
11
12#[derive(Debug, Default)]
14pub struct WakerRegistry {
15 #[allow(dead_code)] pub(crate) connection_wakers: BTreeMap<ConnectionId, Waker>,
17 pub(crate) listener_wakers: BTreeMap<ListenerId, Waker>,
18 pub(crate) read_wakers: BTreeMap<ConnectionId, Waker>,
19 pub(crate) task_wakers: BTreeMap<u64, Waker>,
20 pub(crate) clog_wakers: BTreeMap<ConnectionId, Vec<Waker>>,
22 pub(crate) read_clog_wakers: BTreeMap<ConnectionId, Vec<Waker>>,
24 pub(crate) cut_wakers: BTreeMap<ConnectionId, Vec<Waker>>,
26 pub(crate) send_buffer_wakers: BTreeMap<ConnectionId, Vec<Waker>>,
28 pub(crate) storage_wakers: BTreeMap<(FileId, u64), Waker>,
31}