(limit: usize)
| 73 | |
| 74 | impl TailCaptureFile { |
| 75 | fn new(limit: usize) -> (Self, TailCaptureHandle) { |
| 76 | let inner = Arc::new(Mutex::new(TailCaptureState::default())); |
| 77 | ( |
| 78 | Self { |
| 79 | inner: inner.clone(), |
| 80 | limit, |
| 81 | }, |
| 82 | TailCaptureHandle { inner }, |
| 83 | ) |
| 84 | } |
| 85 | |
| 86 | fn push_tail(&self, bytes: &[u8]) { |
| 87 | let Ok(mut state) = self.inner.lock() else { |
nothing calls this directly
no test coverage detected