MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / extend

Method extend

src/net/send_recv/msg.rs:367–370  ·  view source on GitHub ↗
(&mut self, iter: T)

Source from the content-addressed store, hash-verified

365 for SendAncillaryBuffer<'_, 'slice, 'fd>
366{
367 fn extend<T: IntoIterator<Item = SendAncillaryMessage<'slice, 'fd>>>(&mut self, iter: T) {
368 // TODO: This could be optimized to add every message in one go.
369 iter.into_iter().all(|msg| self.push(msg));
370 }
371}
372
373/// Buffer for receiving ancillary messages with [`recvmsg`].

Callers

nothing calls this directly

Calls 2

allMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected