pub async fn send_data<S: AsyncWriteExt + Unpin, D: Data>( stream: S, data: D ) -> Result<S, SendError>
Sends some data using the stream.