pub struct VecBuf { /* private fields */ }
Expand description
A intermediate struct that impl IoVecBuf and IoVecBufMut.
Trait Implementations§
Source§impl IoVecBuf for VecBuf
impl IoVecBuf for VecBuf
Source§fn 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 Read more
Source§fn read_iovec_len(&self) -> usize
fn read_iovec_len(&self) -> usize
Returns the count of iovec struct behind the pointer. Read more
Source§impl IoVecBufMut for VecBuf
impl IoVecBufMut for VecBuf
Source§fn write_iovec_ptr(&mut self) -> *mut iovec
fn write_iovec_ptr(&mut self) -> *mut iovec
Returns a raw mutable 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 Read more
Source§fn write_iovec_len(&mut self) -> usize
fn write_iovec_len(&mut self) -> usize
Returns the count of iovec struct behind the pointer.
Auto Trait Implementations§
impl Freeze for VecBuf
impl RefUnwindSafe for VecBuf
impl !Send for VecBuf
impl !Sync for VecBuf
impl Unpin for VecBuf
impl UnwindSafe for VecBuf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more