INNER CODE UNIT · Rust

total_dropped

domcyrus/rustnet · crates/rustnet-capture/src/lib.rs:633

    pub fn total_dropped(&self) -> u32 {
        self.dropped.saturating_add(self.if_dropped)
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_default_config() {
        let config = CaptureConfig::default();
        assert_eq!(config.snaplen, 1514);
        assert!(config.filter.is_none());
    }

    #[test]
    fn capture_stats_expose_distinct_drop_sources() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…