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

Method poll_write_vectored

xtask/src/main.rs:164–175  ·  view source on GitHub ↗
(
        self: std::pin::Pin<&mut Self>,
        _cx: &mut std::task::Context<'_>,
        bufs: &[std::io::IoSlice<'_>],
    )

Source from the content-addressed store, hash-verified

162 }
163
164 fn poll_write_vectored(
165 self: std::pin::Pin<&mut Self>,
166 _cx: &mut std::task::Context<'_>,
167 bufs: &[std::io::IoSlice<'_>],
168 ) -> std::task::Poll<std::io::Result<usize>> {
169 let mut total = 0;
170 for buf in bufs {
171 self.push_tail(buf);
172 total += buf.len();
173 }
174 std::task::Poll::Ready(Ok(total))
175 }
176
177 fn is_write_vectored(&self) -> bool {
178 true

Callers

nothing calls this directly

Calls 2

lenMethod · 0.80
push_tailMethod · 0.45

Tested by

no test coverage detected