feat(cli): add support for midpoint timestamps and received stats

This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:56:43 +07:00
1 parent 880653a98d
commit 8ecd113f04
1 file changed
+21
+21
View File
@@ -93,6 +93,7 @@ pub enum TimestampArg {
Send, Send,
Receive, Receive,
Both, Both,
Midpoint,
} }
impl From<TimestampArg> for StampAt { impl From<TimestampArg> for StampAt {
@@ -102,6 +103,26 @@ impl From<TimestampArg> for StampAt {
TimestampArg::Send => Self::Send, TimestampArg::Send => Self::Send,
TimestampArg::Receive => Self::Receive, TimestampArg::Receive => Self::Receive,
TimestampArg::Both => Self::Both, TimestampArg::Both => Self::Both,
TimestampArg::Midpoint => Self::Midpoint,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
pub enum ReceivedStatsArg {
None,
Count,
Window,
Both,
}
impl From<ReceivedStatsArg> for ReceivedStats {
fn from(value: ReceivedStatsArg) -> Self {
match value {
ReceivedStatsArg::None => Self::None,
ReceivedStatsArg::Count => Self::Count,
ReceivedStatsArg::Window => Self::Window,
ReceivedStatsArg::Both => Self::Both,
} }
} }
} }