MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / poll_write

Method poll_write

crates/c-api/src/wasi.rs:236–242  ·  view source on GitHub ↗
(
        self: Pin<&mut Self>,
        _cx: &mut Context<'_>,
        buf: &[u8],
    )

Source from the content-addressed store, hash-verified

234
235impl AsyncWrite for CustomOutputStream {
236 fn poll_write(
237 self: Pin<&mut Self>,
238 _cx: &mut Context<'_>,
239 buf: &[u8],
240 ) -> Poll<io::Result<usize>> {
241 Poll::Ready(self.inner.raw_write(buf))
242 }
243 fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> {
244 Poll::Ready(Ok(()))
245 }

Callers

nothing calls this directly

Calls 1

raw_writeMethod · 0.80

Tested by

no test coverage detected