(&'a mut self, _timeout: Duration)
| 21 | |
| 22 | impl TraitCapturer for Capturer { |
| 23 | fn frame<'a>(&'a mut self, _timeout: Duration) -> io::Result<Frame<'a>> { |
| 24 | let width = self.width(); |
| 25 | let height = self.height(); |
| 26 | Ok(Frame::PixelBuffer(PixelBuffer::new( |
| 27 | self.0.frame()?, |
| 28 | Pixfmt::BGRA, |
| 29 | width, |
| 30 | height, |
| 31 | ))) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | pub struct PixelBuffer<'a> { |
nothing calls this directly
no test coverage detected