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

Method poll_write_vectored

src/pglite/postgres_mod.rs:147–158  ·  view source on GitHub ↗
(
        self: Pin<&mut Self>,
        _cx: &mut TaskContext<'_>,
        bufs: &[io::IoSlice<'_>],
    )

Source from the content-addressed store, hash-verified

145 }
146
147 fn poll_write_vectored(
148 self: Pin<&mut Self>,
149 _cx: &mut TaskContext<'_>,
150 bufs: &[io::IoSlice<'_>],
151 ) -> Poll<io::Result<usize>> {
152 let mut total = 0;
153 for buf in bufs {
154 self.push_tail(buf);
155 total += buf.len();
156 }
157 Poll::Ready(Ok(total))
158 }
159
160 fn is_write_vectored(&self) -> bool {
161 true

Callers

nothing calls this directly

Calls 2

lenMethod · 0.80
push_tailMethod · 0.45

Tested by

no test coverage detected