Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PeerInfoExt for PeerInfo

Implementors§