Module iovec::unix [−][src]
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
as_os_slice |
Convert a slice of |
as_os_slice_mut |
Convert a mutable slice of |