(
self: Pin<&mut Self>,
_cx: &mut TaskContext<'_>,
buf: &[u8],
)
| 128 | |
| 129 | impl virtual_fs::AsyncWrite for TailCaptureFile { |
| 130 | fn poll_write( |
| 131 | self: Pin<&mut Self>, |
| 132 | _cx: &mut TaskContext<'_>, |
| 133 | buf: &[u8], |
| 134 | ) -> Poll<io::Result<usize>> { |
| 135 | self.push_tail(buf); |
| 136 | Poll::Ready(Ok(buf.len())) |
| 137 | } |
| 138 | |
| 139 | fn poll_flush(self: Pin<&mut Self>, _cx: &mut TaskContext<'_>) -> Poll<io::Result<()>> { |
| 140 | Poll::Ready(Ok(())) |