INNER CODE UNIT · Rust

from

orf/gping · gping/src/main.rs:156

    fn from(value: RstBehaviour) -> Self {
        match value {
            RstBehaviour::Pong => pinger::RstBehaviour::Pong,
            RstBehaviour::Drop => pinger::RstBehaviour::Drop,
        }
    }
}

struct App {
    data: Vec<PlotData>,
    display_interval: chrono::Duration,
    started: chrono::DateTime<Local>,
    yrange: (Option<f64>, Option<f64>),
}

impl App {
    fn new(data: Vec<PlotData>, buffer: u64, yrange: (Option<f64>, Option<f64>)) -> Self {
        App {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…