pub struct AsyncReadBytes<B>(/* private fields */)
where
B: AsMut<[u8]> + Unpin + 'static;Expand description
Container or asynchronously reading bytes using in ReadAtAsync
Implementations§
Source§impl<B> AsyncReadBytes<B>
impl<B> AsyncReadBytes<B>
Sourcepub fn into_inner(self) -> B
pub fn into_inner(self) -> B
Extract inner value
Trait Implementations§
Source§impl<B> AsMut<[u8]> for AsyncReadBytes<B>
impl<B> AsMut<[u8]> for AsyncReadBytes<B>
Source§impl<B> Debug for AsyncReadBytes<B>
impl<B> Debug for AsyncReadBytes<B>
Auto Trait Implementations§
impl<B> Freeze for AsyncReadBytes<B>where
B: Freeze,
impl<B> RefUnwindSafe for AsyncReadBytes<B>where
B: RefUnwindSafe,
impl<B> Send for AsyncReadBytes<B>where
B: Send,
impl<B> Sync for AsyncReadBytes<B>where
B: Sync,
impl<B> Unpin for AsyncReadBytes<B>
impl<B> UnwindSafe for AsyncReadBytes<B>where
B: UnwindSafe,
Blanket Implementations§
§impl<T, U> AsMutByteSlice<T> for U
impl<T, U> AsMutByteSlice<T> for U
fn as_mut_byte_slice(&mut self) -> &mut [u8] ⓘ
§impl<U> AsMutSliceOf for U
impl<U> AsMutSliceOf for U
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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