pub struct VectoredSlice<T> { /* private fields */ }Expand description
An owned view of a vectored buffer.
Implementations§
Source§impl<T> VectoredSlice<T>
impl<T> VectoredSlice<T>
Trait Implementations§
Source§impl<T> IntoInner for VectoredSlice<T>
impl<T> IntoInner for VectoredSlice<T>
Source§fn into_inner(self) -> <VectoredSlice<T> as IntoInner>::Inner
fn into_inner(self) -> <VectoredSlice<T> as IntoInner>::Inner
Get the inner buffer.
Source§impl<T> IoVectoredBuf for VectoredSlice<T>where
T: IoVectoredBuf,
impl<T> IoVectoredBuf for VectoredSlice<T>where
T: IoVectoredBuf,
Source§unsafe fn iter_io_buffer(&self) -> impl Iterator<Item = IoBuffer>
unsafe fn iter_io_buffer(&self) -> impl Iterator<Item = IoBuffer>
Source§unsafe fn iter_io_slice(&self) -> impl Iterator<Item = IoSlice>
unsafe fn iter_io_slice(&self) -> impl Iterator<Item = IoSlice>
Source§fn iter_slice(&self) -> impl Iterator<Item = &[u8]>
fn iter_slice(&self) -> impl Iterator<Item = &[u8]>
An iterator over slices.
Source§fn total_capacity(&self) -> usize
fn total_capacity(&self) -> usize
The total capacity of all buffers.
Source§fn owned_iter(self) -> Result<VectoredBufIter<Self>, Self>where
Self: Sized,
fn owned_iter(self) -> Result<VectoredBufIter<Self>, Self>where
Self: Sized,
Wrap self into an owned iterator.
Auto Trait Implementations§
impl<T> Freeze for VectoredSlice<T>where
T: Freeze,
impl<T> RefUnwindSafe for VectoredSlice<T>where
T: RefUnwindSafe,
impl<T> Send for VectoredSlice<T>where
T: Send,
impl<T> Sync for VectoredSlice<T>where
T: Sync,
impl<T> Unpin for VectoredSlice<T>where
T: Unpin,
impl<T> UnwindSafe for VectoredSlice<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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more