Weave documentation
Filament referencefilament-link

filament-link · keepalive

Source declarations, signatures and documentation for keepalive.

Read the current implementation boundaries before integration. This reference reproduces declarations; it omits source comments whose examples or readiness claims have not been verified.

Source: sigil/weave/filament/filament-link/src/keepalive.rs. SHA-256: 550ccd9ce63498d3f315364a2d06a3ab4acf5f05e512f6df9b7ccea21e954a73.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

keepalive::Keepalive

#[derive(Debug, Clone)]
pub struct Keepalive {

}

Source line: 17.

keepalive::Keepalive::DEFAULT_INTERVAL

pub const DEFAULT_INTERVAL: Duration;

Source line: 45.

keepalive::Keepalive::MIN_INTERVAL

pub const MIN_INTERVAL: Duration;

Source line: 48.

keepalive::Keepalive::DEFAULT_MAX_MISSED

pub const DEFAULT_MAX_MISSED: u64;

Source line: 51.

keepalive::Keepalive::PACKET_SIZE

pub const PACKET_SIZE: usize;

Source line: 54.

keepalive::Keepalive::new

pub fn new(link_id: LinkId, interval: Option<Duration>) -> Self;

Source line: 62.

keepalive::Keepalive::is_due

pub fn is_due(&self) -> bool;

Source line: 85.

keepalive::Keepalive::mark_sent

pub fn mark_sent(&mut self);

Source line: 93.

keepalive::Keepalive::mark_received

pub fn mark_received(&mut self);

Source line: 99.

keepalive::Keepalive::is_alive

pub fn is_alive(&self) -> bool;

Source line: 106.

keepalive::Keepalive::is_dead

pub fn is_dead(&self) -> bool;

Source line: 118.

keepalive::Keepalive::time_until_next

pub fn time_until_next(&self) -> Duration;

Source line: 123.

keepalive::Keepalive::time_since_last_received

pub fn time_since_last_received(&self) -> Option<Duration>;

Source line: 138.

keepalive::Keepalive::bandwidth_overhead_bps

pub fn bandwidth_overhead_bps(&self) -> f64;

Source line: 143.

keepalive::Keepalive::stats

pub fn stats(&self) -> KeepaliveStats;

Source line: 150.

keepalive::Keepalive::update_missed

pub fn update_missed(&mut self);

Source line: 162.

pub fn link_id(&self) -> LinkId;

Source line: 172.

keepalive::Keepalive::interval

pub fn interval(&self) -> Duration;

Source line: 177.

keepalive::KeepaliveStats

#[derive(Debug, Clone)]
pub struct KeepaliveStats {
/// Number of keepalives sent

pub sent_count: u64,
/// Number of keepalives received

pub received_count: u64,
/// Number of missed keepalives

pub missed_count: u64,
/// Last keepalive sent timestamp

pub last_sent: Option<Instant>,
/// Last keepalive received timestamp

pub last_received: Option<Instant>,
/// Bandwidth overhead (bits per second)

pub bandwidth_bps: f64
}

Source line: 184.

On this page