Struct rustix::pipe::IoSliceRaw
source · 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> 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