Struct microasync_rt::io::read::ReadFuture
source · pub struct ReadFuture<'a, T>(_, _);Trait Implementations§
source§impl<'a> Future for ReadFuture<'a, File>
impl<'a> Future for ReadFuture<'a, File>
source§impl<'a> Future for ReadFuture<'a, TcpStream>
impl<'a> Future for ReadFuture<'a, TcpStream>
source§impl<'a> Future for ReadFuture<'a, UdpSocket>
impl<'a> Future for ReadFuture<'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> RefUnwindSafe for ReadFuture<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ReadFuture<'a, T>where
T: Send,
impl<'a, T> Sync for ReadFuture<'a, T>where
T: Sync,
impl<'a, T> Unpin for ReadFuture<'a, T>
impl<'a, T> !UnwindSafe for ReadFuture<'a, T>
Blanket Implementations§
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