pub struct ReadExactFuture<'a, T>(/* private fields */);
Trait Implementations§
Source§impl<'a> Future for ReadExactFuture<'a, File>
impl<'a> Future for ReadExactFuture<'a, File>
Source§impl<'a> Future for ReadExactFuture<'a, TcpStream>
impl<'a> Future for ReadExactFuture<'a, TcpStream>
Source§impl<'a> Future for ReadExactFuture<'a, UdpSocket>
impl<'a> Future for ReadExactFuture<'a, UdpSocket>
Source§impl<'a, T> ReadAsync<'a, usize, ReadFuture<'a, T>, ReadExactFuture<'a, T>> for Twhere
ReadFuture<'a, T>: Future<Output = Result<usize, Error>> + 'a,
ReadExactFuture<'a, T>: Future<Output = Result<(), Error>> + 'a,
impl<'a, T> ReadAsync<'a, usize, ReadFuture<'a, T>, ReadExactFuture<'a, T>> for Twhere
ReadFuture<'a, T>: Future<Output = Result<usize, Error>> + 'a,
ReadExactFuture<'a, T>: Future<Output = Result<(), Error>> + 'a,
Source§fn read(&'a mut self, bytes: &'a mut [u8]) -> ReadFuture<'a, T>
fn read(&'a mut self, bytes: &'a mut [u8]) -> ReadFuture<'a, T>
Async equivalent to std::io::Read::read.
Source§fn read_exact(&'a mut self, bytes: &'a mut [u8]) -> ReadExactFuture<'a, T>
fn read_exact(&'a mut self, bytes: &'a mut [u8]) -> ReadExactFuture<'a, T>
Async equivalent to std::io::Read::read_exact. This MAY read more bytes than the length of
the array if needed (namely, when using UdpSockets), but will avoid doing so to the best of its ability.
Auto Trait Implementations§
impl<'a, T> Freeze for ReadExactFuture<'a, T>
impl<'a, T> RefUnwindSafe for ReadExactFuture<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ReadExactFuture<'a, T>where
T: Send,
impl<'a, T> Sync for ReadExactFuture<'a, T>where
T: Sync,
impl<'a, T> Unpin for ReadExactFuture<'a, T>
impl<'a, T> !UnwindSafe for ReadExactFuture<'a, T>
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