pub async fn write_data(&self, data: impl AsRef<[u8]>) {
        let mut read = self.read.lock().await;
        let p = read.position();
        read.write_all(data.as_ref()).await.unwrap();
        read.set_position(p);
    }
/// Write `data` to the underlying buffers.
///
/// Whatever uses `AsyncRead` on this type will read from this buffer
Write `data` to the underlying buffers.
Whatever uses `AsyncRead` on this type will read from this buffer
Write ` data ` to the underlying buffers . Whatever uses ` AsyncRead ` on this type will read from this buffer
pub async fn write_data(&self, data: impl AsRef<[u8]>) {
        let mut read = self.read.lock().await;
        let p = read.position();
        read.write_all(data.as_ref()).await.unwrap();
        read.set_position(p);
    }
pub async fn write_data ( & self , data : impl AsRef < [ u8 ] > ) { let mut read = self . read . lock ( ) . await ; let p = read . position ( ) ; read . write_all ( data . as_ref ( ) ) . await . unwrap ( ) ; read . set_position ( p ) ; }
Write `data` to the underlying buffers.
Write ` data ` to the underlying buffers .
&self
data
impl AsRef<[u8]>
&self
data
impl AsRef<[u8]>