(&self, bytes: &[u8])
| 84 | } |
| 85 | |
| 86 | fn push_tail(&self, bytes: &[u8]) { |
| 87 | let Ok(mut state) = self.inner.lock() else { |
| 88 | return; |
| 89 | }; |
| 90 | for byte in bytes { |
| 91 | state.bytes.push_back(*byte); |
| 92 | while state.bytes.len() > self.limit { |
| 93 | state.bytes.pop_front(); |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | impl TailCaptureHandle { |
no test coverage detected