Skip to main contentModule watch
Source use std::collections::BTreeMap; ๐ use std::collections::btree_map::Entry; ๐ use std::ops::RangeToInclusive; ๐ use std::sync::Mutex; ๐ use futures::pin_mut; ๐ use serde::Serialize; ๐ use serde::Serialize; ๐ use tokio::sync::watch::Receiver; ๐ use tokio::sync::watch::Sender; ๐ use tokio::sync::watch::channel; ๐ use tuwunel_core::debug; ๐ use tuwunel_core::debug; ๐ use tuwunel_core::defer; ๐ use tuwunel_core::implement; ๐ use tuwunel_core::smallvec::SmallVec; ๐ use crate::keyval::KeyBuf; ๐ use crate::keyval::serialize_key; ๐
- Watch ๐
- Owns the prefix subscriptions registered for a map.
- KeyVec ๐
- Buffers stale watcher keys discovered during notification.
- Watchers ๐
- Stores prefix subscriptions in raw-key order.