filament-transport · bandwidth
Source declarations, signatures and documentation for bandwidth.
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-transport/src/bandwidth.rs. SHA-256: a1d7fb3908c094bec51b7f74d7fa2c58ebcfe2cc6b893e1c2bd373947fc1ff12.
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.
bandwidth::BandwidthManager
pub struct BandwidthManager {
}Source line: 9.
bandwidth::BandwidthManager::new
#[must_use]
pub fn new(cap: f64) -> Self;Source line: 33.
bandwidth::BandwidthManager::can_send
pub fn can_send(&mut self, size: usize, interface_bitrate: u64) -> bool;Source line: 51.
bandwidth::BandwidthManager::record_sent
pub fn record_sent(&mut self, size: usize);Source line: 85.
bandwidth::BandwidthManager::utilization
#[must_use]
pub fn utilization(&self) -> f64;Source line: 92.
bandwidth::BandwidthManager::total_bytes
#[must_use]
pub fn total_bytes(&self) -> u64;Source line: 102.
bandwidth::BandwidthManager::reset
pub fn reset(&mut self);Source line: 107.