[repo] Lab relay: recorder, redacting dump, TCP/TLS-terminating/UDP relays, CLI (never compiled yet)

This commit is contained in:
2026-11-25 12:36:56 +01:00
parent fbb8833f3d
commit a2b834ed87
9 changed files with 983 additions and 1 deletions
+5
View File
@@ -55,6 +55,11 @@ impl Rewriter {
std::mem::take(&mut self.held)
}
/// Whether there are no rules (the rewriter then passes bytes through and never holds any).
pub fn is_empty(&self) -> bool {
self.rules.is_empty()
}
/// Bytes currently held back.
pub fn held(&self) -> usize {
self.held.len()