Menu
Public repository / 623d5df3ccfe9c589bfe23f97047aa122be33c7c
AkurAI-VPN / crates/akurai-node/src/peermap.rs
Latest change 2f952519db76ba7dd8b099a09ebda909d137ea5e - feat: scaffold pure-Rust zero-dep AkurAI VPN workspace (v0.0.1) by Ólafur Búi Ólafsson
//! Peer-map watch (stub — DO NOT implement here).
//!
//! Subscribes to the control plane's peer-map stream and updates local peer
//! sessions, routes, and DNS as the network changes. It needs the (undecided)
//! transport, so it is a stub in 0.0.1.
use crate::error::NodeError;
use crate::tun::TunDevice;
/// Start watching the peer map and applying updates. **Stub** — returns
/// [`NodeError::NotImplemented`].
pub fn watch(_device: &TunDevice) -> Result<(), NodeError> {
Err(NodeError::NotImplemented("peer-map watch stream"))
}