Module iovec::unix

source · []
Expand description

IoVec extensions for Unix platforms.

These functions provide conversions to unix specific representations of the vectored data.

Examples

use iovec::IoVec;
use iovec::unix;

let a = b"hello".to_vec();
let b = b"world".to_vec();

let bufs: &[&IoVec] = &[(&a[..]).into(), (&b[..]).into()];
let os_bufs = unix::as_os_slice(&bufs[..]);

// Use the `os_bufs` slice with `writev`.

Functions

Convert a slice of IoVec refs to a slice of libc::iovec.

Convert a mutable slice of IoVec refs to a mutable slice of libc::iovec.