pub struct IoVecWrapperMut<T> { /* private fields */ }
Expand description
A wrapper to make IoVecBufMut impl IoBufMut.
Implementations§
Source§impl<T: IoVecBufMut> IoVecWrapperMut<T>
impl<T: IoVecBufMut> IoVecWrapperMut<T>
Sourcepub fn new(iovec_buf: T) -> Result<Self, T>
pub fn new(iovec_buf: T) -> Result<Self, T>
Create a new IoVecWrapperMut with something that impl IoVecBufMut.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume self and return raw iovec buf.
Trait Implementations§
Source§impl<T: IoVecBufMut> IoBufMut for IoVecWrapperMut<T>
impl<T: IoVecBufMut> IoBufMut for IoVecWrapperMut<T>
Source§fn write_ptr(&mut self) -> *mut u8
fn write_ptr(&mut self) -> *mut u8
Returns a raw mutable pointer to the vector’s buffer. Read more
Source§fn bytes_total(&mut self) -> usize
fn bytes_total(&mut self) -> usize
Total size of the buffer, including uninitialized memory, if any. Read more
Source§unsafe fn slice_mut_unchecked(
self,
range: impl RangeBounds<usize>,
) -> SliceMut<Self>where
Self: Sized,
unsafe fn slice_mut_unchecked(
self,
range: impl RangeBounds<usize>,
) -> SliceMut<Self>where
Self: Sized,
Returns a view of the buffer with the specified range. Read more
Auto Trait Implementations§
impl<T> Freeze for IoVecWrapperMut<T>where
T: Freeze,
impl<T> RefUnwindSafe for IoVecWrapperMut<T>where
T: RefUnwindSafe,
impl<T> Send for IoVecWrapperMut<T>where
T: Send,
impl<T> Sync for IoVecWrapperMut<T>where
T: Sync,
impl<T> Unpin for IoVecWrapperMut<T>where
T: Unpin,
impl<T> UnwindSafe for IoVecWrapperMut<T>where
T: UnwindSafe,
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