#[repr(C)]pub struct IoVec {
pub iov_base: *mut u8,
pub iov_len: usize,
}Expand description
iovec 结构体(对应 POSIX struct iovec)
用于 readv/writev/preadv/pwritev 系统调用
Fields§
§iov_base: *mut u8缓冲区起始地址
iov_len: usize缓冲区长度
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IoVec
impl RefUnwindSafe for IoVec
impl !Send for IoVec
impl !Sync for IoVec
impl Unpin for IoVec
impl UnwindSafe for IoVec
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)