filament-core · metrics
Source declarations, signatures and documentation for metrics.
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-core/src/metrics.rs. SHA-256: 8defb42d187ff9e99d447943abce32b0666b6a516921f2a28e1a86726c957bd2.
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.
metrics::Metrics
#[derive(Debug, Clone)]
pub struct Metrics {
}Source line: 100.
metrics::Metrics::new
pub fn new() -> Self;Source line: 112.
metrics::Metrics::uptime_secs
pub fn uptime_secs(&self) -> u64;Source line: 119.
metrics::Metrics::record_packet_sent
pub fn record_packet_sent(&self, packet_type: &str);Source line: 124.
metrics::Metrics::record_packet_received
pub fn record_packet_received(&self, packet_type: &str);Source line: 129.
metrics::Metrics::record_bytes_sent
pub fn record_bytes_sent(&self, interface: &str, bytes: u64);Source line: 134.
metrics::Metrics::record_bytes_received
pub fn record_bytes_received(&self, interface: &str, bytes: u64);Source line: 141.
metrics::Metrics::set_active_destinations
pub fn set_active_destinations(&self, dest_type: &str, count: usize);Source line: 148.
metrics::Metrics::set_active_links
pub fn set_active_links(&self, state: &str, count: usize);Source line: 155.
metrics::Metrics::set_routing_table_size
pub fn set_routing_table_size(&self, table: &str, size: usize);Source line: 160.
metrics::Metrics::record_packet_processing_time
pub fn record_packet_processing_time(&self, operation: &str, duration: std::time::Duration);Source line: 167.
metrics::Metrics::record_link_establishment_time
pub fn record_link_establishment_time(&self, result: &str, duration: std::time::Duration);Source line: 174.
metrics::Metrics::record_error
pub fn record_error(&self, error_type: &str, component: &str);Source line: 181.
metrics::Metrics::export
pub fn export(&self) -> Result<String>;Source line: 190.
metrics::Timer
#[derive(Debug)]
pub struct Timer {
}Source line: 215.
metrics::Timer::new
pub fn new(operation: impl Into<String>) -> Self;Source line: 222.