pub unsafe trait IoVecBuf: Unpin + 'static {
// Required methods
fn read_iovec_ptr(&self) -> *const iovec;
fn read_iovec_len(&self) -> usize;
}
Expand description
Required Methods§
Sourcefn read_iovec_ptr(&self) -> *const iovec
fn read_iovec_ptr(&self) -> *const iovec
Returns a raw pointer to iovec struct. struct iovec { void iov_base; / Starting address / size_t iov_len; / Number of bytes to transfer */ }; [iovec1][iovec2][iovec3]… ^ The pointer
§Safety
The implementation must ensure that, while the runtime owns the value,
the pointer returned by stable_mut_ptr
does not change.
Also, the value pointed must be a valid iovec struct.
Sourcefn read_iovec_len(&self) -> usize
fn read_iovec_len(&self) -> usize
Returns the count of iovec struct behind the pointer.
§Safety
There must be really that number of iovec here.