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

Method poll_write

xtask/src/main.rs:141–148  ·  view source on GitHub ↗
(
        self: std::pin::Pin<&mut Self>,
        _cx: &mut std::task::Context<'_>,
        buf: &[u8],
    )

Source from the content-addressed store, hash-verified

139#[cfg(feature = "template-runner")]
140impl wasmer_wasix::virtual_fs::AsyncWrite for TailCaptureFile {
141 fn poll_write(
142 self: std::pin::Pin<&mut Self>,
143 _cx: &mut std::task::Context<'_>,
144 buf: &[u8],
145 ) -> std::task::Poll<std::io::Result<usize>> {
146 self.push_tail(buf);
147 std::task::Poll::Ready(Ok(buf.len()))
148 }
149
150 fn poll_flush(
151 self: std::pin::Pin<&mut Self>,

Callers

nothing calls this directly

Calls 2

lenMethod · 0.80
push_tailMethod · 0.45

Tested by

no test coverage detected