pub trait PeerInfoExt {
// Required method
fn is_recently_connected(&self) -> bool;
}Required Methods§
Sourcefn is_recently_connected(&self) -> bool
fn is_recently_connected(&self) -> bool
WireGuard rejects any communication after REJECT_AFTER_TIME, so we can use this as a heuristic for “currentness” without relying on heavier things like ICMP.