Struct ReadExact
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct ReadExact<'a, R: ?Sized> { /* private fields */ }
Future for the read_exact method.
Trait Implementations
impl<'a, R: Debug + ?Sized> Debug for ReadExact<'a, R>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<R: ?Sized + Unpin> Unpin for ReadExact<'_, R>
impl<R: AsyncRead + ?Sized + Unpin> Future for ReadExact<'_, R>
type Output = Result<(), Error>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<'a, R> !UnwindSafe for ReadExact<'a, R>
impl<'a, R> Freeze for ReadExact<'a, R>
where
&'a mut R: Freeze,
R: ?Sized,
impl<'a, R> RefUnwindSafe for ReadExact<'a, R>
where
&'a mut R: RefUnwindSafe,
R: ?Sized,
impl<'a, R> Send for ReadExact<'a, R>
where
&'a mut R: Send,
R: ?Sized,
impl<'a, R> Sync for ReadExact<'a, R>
where
&'a mut R: Sync,
R: ?Sized,
impl<'a, R> UnsafeUnpin for ReadExact<'a, R>
where
&'a mut R: UnsafeUnpin,
R: ?Sized,
Blanket Implementations
impl<F> IntoFuture for ReadExact<'a, R>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<F, T, E> TryFuture for ReadExact<'a, R>
where
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>
impl<Fut> TryFutureExt for ReadExact<'a, R>
where
Fut: TryFuture + ?Sized,
impl<T> Any for ReadExact<'a, R>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ReadExact<'a, R>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ReadExact<'a, R>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ReadExact<'a, R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for ReadExact<'a, R>
where
T: Future + ?Sized,
impl<T, U> Into<U> for ReadExact<'a, R>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ReadExact<'a, R>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ReadExact<'a, R>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>