pub struct IoSliceRaw<'a> { /* private fields */ }Expand description
A buffer type for use with vmsplice.
It is guaranteed to be ABI compatible with the iovec type on Unix platforms
and WSABUF on Windows. Unlike IoSlice and IoSliceMut it is
semantically like a raw pointer, and therefore can be shared or mutated as
needed.
Implementations§
Source§impl<'a> IoSliceRaw<'a>
impl<'a> IoSliceRaw<'a>
Sourcepub fn from_slice(buf: &'a [u8]) -> Self
pub fn from_slice(buf: &'a [u8]) -> Self
Creates a new IoSlice wrapping a byte slice.
Sourcepub fn from_slice_mut(buf: &'a mut [u8]) -> Self
pub fn from_slice_mut(buf: &'a mut [u8]) -> Self
Creates a new IoSlice wrapping a mutable byte slice.
Auto Trait Implementations§
impl<'a> Freeze for IoSliceRaw<'a>
impl<'a> RefUnwindSafe for IoSliceRaw<'a>
impl<'a> !Send for IoSliceRaw<'a>
impl<'a> !Sync for IoSliceRaw<'a>
impl<'a> Unpin for IoSliceRaw<'a>
impl<'a> UnwindSafe for IoSliceRaw<'a>
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