pub struct ReadExact<'a, A: ?Sized> {
reader: &'a mut A,
buf: ReadBuf<'a>,
_pin: PhantomPinned,
}
Expand description
Creates a future which will read exactly enough bytes to fill buf
,
returning an error if EOF is hit sooner.
On success the number of bytes is returned
Fields§
§reader: &'a mut A
§buf: ReadBuf<'a>
§_pin: PhantomPinned
Trait Implementations§
impl<'__pin, 'a, A: ?Sized> Unpin for ReadExact<'a, A>where
PinnedFieldsOf<__Origin<'__pin, 'a, A>>: Unpin,
Auto Trait Implementations§
impl<'a, A> Freeze for ReadExact<'a, A>where
A: ?Sized,
impl<'a, A> RefUnwindSafe for ReadExact<'a, A>where
A: RefUnwindSafe + ?Sized,
impl<'a, A> Send for ReadExact<'a, A>
impl<'a, A> Sync for ReadExact<'a, A>
impl<'a, A> !UnwindSafe for ReadExact<'a, 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
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