pub fn write(&mut self, data: &[u8]) {
        let buf = Bytes::from(data.to_owned());
        self.unacked_segments.push_back(buf);
        self.unacked_len += data.len();
        self.offset += data.len() as u64;
    }
/// Append application data to the end of the stream
Append application data to the end of the stream
Append application data to the end of the stream
pub fn write(&mut self, data: &[u8]) {
        let buf = Bytes::from(data.to_owned());
        self.unacked_segments.push_back(buf);
        self.unacked_len += data.len();
        self.offset += data.len() as u64;
    }
pub fn write ( & mut self , data : & [ u8 ] ) { let buf = Bytes :: from ( data . to_owned ( ) ) ; self . unacked_segments . push_back ( buf ) ; self . unacked_len += data . len ( ) ; self . offset += data . len ( ) as u64 ; }
Append application data to the end of the stream
Append application data to the end of the stream
&mut self
data
&[u8]