Lines Matching refs:IoSlice
6 use std::io::{IoSlice, IoSliceMut};
13 pub fn writev(fd: RawFd, iov: &[IoSlice<'_>]) -> Result<usize> {
14 // SAFETY: to quote the documentation for `IoSlice`:
16 // [IoSlice] is semantically a wrapper around a &[u8], but is
48 pub fn pwritev(fd: RawFd, iov: &[IoSlice<'_>], offset: off_t) -> Result<usize> {
132 /// This is the same underlying C structure as `IoSlice`,
134 /// therefore not represented in Rust by an actual slice as `IoSlice` is. It
155 note = "`IoVec` is no longer used in the public interface, use `IoSlice` or `IoSliceMut` instead"
170 note = "Use the `Deref` impl of `IoSlice` or `IoSliceMut` instead"
185 #[deprecated(since = "0.24.0", note = "Use `IoSlice::new` instead")]
225 /// `local_iov` is a list of [`IoSlice`]s containing the data to be written,
240 /// [`IoSlice`]: https://doc.rust-lang.org/std/io/struct.IoSlice.html
245 local_iov: &[IoSlice<'_>],