pub struct ReadExactTimeout<'a, A: ?Sized> { /* private fields */ }Expand description
Creates a future which will read exactly enough bytes to fill buf,
stops if Timeout,
returning an error if EOF is hit sooner.
On success the number of bytes is returned
Trait Implementations§
Source§impl<A> Future for ReadExactTimeout<'_, A>
impl<A> Future for ReadExactTimeout<'_, A>
impl<'__pin, 'a, A: ?Sized> Unpin for ReadExactTimeout<'a, A>where
PinnedFieldsOf<__Origin<'__pin, 'a, A>>: Unpin,
Auto Trait Implementations§
impl<'a, A> Freeze for ReadExactTimeout<'a, A>where
A: ?Sized,
impl<'a, A> RefUnwindSafe for ReadExactTimeout<'a, A>where
A: RefUnwindSafe + ?Sized,
impl<'a, A> Send for ReadExactTimeout<'a, A>
impl<'a, A> Sync for ReadExactTimeout<'a, A>
impl<'a, A> !UnwindSafe for ReadExactTimeout<'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,
Source§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