pub struct ReadTimeout<'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 ReadTimeout<'_, A>
impl<A> Future for ReadTimeout<'_, A>
impl<'__pin, 'a, A: ?Sized> Unpin for ReadTimeout<'a, A>where
PinnedFieldsOf<__Origin<'__pin, 'a, A>>: Unpin,
Auto Trait Implementations§
impl<'a, A> Freeze for ReadTimeout<'a, A>where
A: ?Sized,
impl<'a, A> RefUnwindSafe for ReadTimeout<'a, A>where
A: RefUnwindSafe + ?Sized,
impl<'a, A> Send for ReadTimeout<'a, A>
impl<'a, A> Sync for ReadTimeout<'a, A>
impl<'a, A> !UnwindSafe for ReadTimeout<'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