usecore::future::Future;/// A stream that can be written to asynchronously.
pubtraitAsyncWrite{/// The error returned by [`write`](Self::write) and [`flush`](Self::flush).
typeError;/// Writes from a given buffer, returns the number of written bytes.
////// # Errors
////// Returns an error if writing fails.
////// # Cancel safety
////// Implementations in this crate are cancel safe.
fnwrite<'a>(&'amutself, buf:&'a [u8])-> impl Future<Output = Result<usize, Self::Error>>;/// Makes sure that everything accepted by [`write`](Self::write) is sent.
////// # Errors
////// Returns an error if writing fails.
////// # Cancel safety
////// Implementations in this crate are cancel safe.
fnflush(&mutself)-> impl Future<Output = Result<(), Self::Error>>;}