[repo] Lab relay: recorder, redacting dump, TCP/TLS-terminating/UDP relays, CLI (never compiled yet)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user