PeerInfoExt

Trait PeerInfoExt 

Source
pub trait PeerInfoExt {
    // Required method
    fn is_recently_connected(&self) -> bool;
}

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl PeerInfoExt for PeerInfo

Implementors§