Trait drone_core::io::Write [−][src]
pub trait Write<'sess> {
type Error;
fn write(
&'sess mut self,
buf: &'sess [u8]
) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'sess>>;
}The Write trait allows for writing bytes to a source asynchronously.
Associated Types
type Error[src]
The error type returned by Write::write.
Required methods
fn write(
&'sess mut self,
buf: &'sess [u8]
) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'sess>>[src]
&'sess mut self,
buf: &'sess [u8]
) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'sess>>
Write a buffer into this writer asynchronously, eventually returning how many bytes were written.