(&mut self, buf: &[u8])
| 649 | |
| 650 | impl Write for CaptureFile { |
| 651 | fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { |
| 652 | self.buffer |
| 653 | .lock() |
| 654 | .expect("capture lock poisoned") |
| 655 | .extend_from_slice(buf); |
| 656 | Ok(buf.len()) |
| 657 | } |
| 658 | |
| 659 | fn flush(&mut self) -> std::io::Result<()> { |
| 660 | Ok(()) |