A buffer type used with
It is semantically a wrapper around an
&[u8], but is guaranteed to be
ABI compatible with the
iovec type on Unix platforms and
Creates a new
IoSlice wrapping a byte slice.
Panics on Windows if the slice is larger than 4GB.
Advance the internal cursor of the slice.
Elements in the slice may be modified if the cursor is not advanced to
the end of the slice. For example if we have a slice of buffers with 2
IoSlices, both of length 8, and we advance the cursor by 10 bytes the
IoSlice will be untouched however the second will be modified to
remove the first 2 bytes (10 - 8).
Auto Trait Implementations
impl<'a> RefUnwindSafe for IoSlice<'a>
impl<'a> UnwindSafe for IoSlice<'a>
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.