pub struct RawBufVectored { /* private fields */ }
Expand description
RawBufVectored behaves like RawBuf. And user must obey the following restrictions:
- await the future with RawBuf Ready before drop the real buffer
- make sure the pointer and length is valid before the future Ready
Implementations§
Trait Implementations§
Source§impl IoVecBuf for RawBufVectored
impl IoVecBuf for RawBufVectored
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 RawBufVectored
impl IoVecBufMut for RawBufVectored
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 RawBufVectored
impl RefUnwindSafe for RawBufVectored
impl !Send for RawBufVectored
impl !Sync for RawBufVectored
impl Unpin for RawBufVectored
impl UnwindSafe for RawBufVectored
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