MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / poll_write

Method poll_write

src/pglite/postgres_mod.rs:130–137  ·  view source on GitHub ↗
(
        self: Pin<&mut Self>,
        _cx: &mut TaskContext<'_>,
        buf: &[u8],
    )

Source from the content-addressed store, hash-verified

128
129impl 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(()))

Calls 5

lenMethod · 0.80
writeMethod · 0.80
elapsedMethod · 0.80
record_totalMethod · 0.80
push_tailMethod · 0.45