Struct microasync_rt::io::write::WriteFuture
source · pub struct WriteFuture<'a, T>(_, _);Trait Implementations§
source§impl<'a> Future for WriteFuture<'a, File>
impl<'a> Future for WriteFuture<'a, File>
source§impl<'a> Future for WriteFuture<'a, TcpStream>
impl<'a> Future for WriteFuture<'a, TcpStream>
source§impl<'a> Future for WriteFuture<'a, UdpSocket>
impl<'a> Future for WriteFuture<'a, UdpSocket>
source§impl<'a, T> WriteAsync<'a, usize, WriteFuture<'a, T>, WriteExactFuture<'a, T>> for Twhere
WriteFuture<'a, T>: Future<Output = Result<usize, Error>> + 'a,
WriteExactFuture<'a, T>: Future<Output = Result<(), Error>> + 'a,
impl<'a, T> WriteAsync<'a, usize, WriteFuture<'a, T>, WriteExactFuture<'a, T>> for Twhere
WriteFuture<'a, T>: Future<Output = Result<usize, Error>> + 'a,
WriteExactFuture<'a, T>: Future<Output = Result<(), Error>> + 'a,
source§fn write(&'a mut self, bytes: &'a [u8]) -> WriteFuture<'a, T> ⓘ
fn write(&'a mut self, bytes: &'a [u8]) -> WriteFuture<'a, T> ⓘ
Async equivalent to std::io::Write::write.
source§fn write_exact(&'a mut self, bytes: &'a [u8]) -> WriteExactFuture<'a, T> ⓘ
fn write_exact(&'a mut self, bytes: &'a [u8]) -> WriteExactFuture<'a, T> ⓘ
Async equivalent to std::io::Write::write_exact. When using UDP, this may send multiple
packets.
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for WriteFuture<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for WriteFuture<'a, T>where
T: Send,
impl<'a, T> Sync for WriteFuture<'a, T>where
T: Sync,
impl<'a, T> Unpin for WriteFuture<'a, T>
impl<'a, T> !UnwindSafe for WriteFuture<'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