pub struct ReadBuf<'a, R: ?Sized, B: ?Sized> {
reader: &'a mut R,
buf: &'a mut B,
_pin: PhantomPinned,
}
Expand description
Future returned by read_buf
.
Fields§
§reader: &'a mut R
§buf: &'a mut B
§_pin: PhantomPinned
Trait Implementations§
source§impl<R, B> Future for ReadBuf<'_, R, B>where
R: AsyncRead + Unpin + ?Sized,
B: BufMut + ?Sized,
impl<R, B> Future for ReadBuf<'_, R, B>where R: AsyncRead + Unpin + ?Sized, B: BufMut + ?Sized,
impl<'__pin, 'a, R: ?Sized, B: ?Sized> Unpin for ReadBuf<'a, R, B>where __Origin<'__pin, 'a, R, B>: Unpin,
Auto Trait Implementations§
impl<'a, R: ?Sized, B: ?Sized> RefUnwindSafe for ReadBuf<'a, R, B>where B: RefUnwindSafe, R: RefUnwindSafe,
impl<'a, R: ?Sized, B: ?Sized> Send for ReadBuf<'a, R, B>where B: Send, R: Send,
impl<'a, R: ?Sized, B: ?Sized> Sync for ReadBuf<'a, R, B>where B: Sync, R: Sync,
impl<'a, R, B> !UnwindSafe for ReadBuf<'a, R, B>
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more