mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-24 23:31:33 +00:00
Add implementations of prepare_uninitialized_buffer and read_buf where relevant (#1107)
* Fix #1080 * Fix browser WebSockets
This commit is contained in:
@ -464,7 +464,15 @@ impl Read for TcpTransStream {
|
||||
}
|
||||
}
|
||||
|
||||
impl AsyncRead for TcpTransStream {}
|
||||
impl AsyncRead for TcpTransStream {
|
||||
unsafe fn prepare_uninitialized_buffer(&self, buf: &mut [u8]) -> bool {
|
||||
self.inner.prepare_uninitialized_buffer(buf)
|
||||
}
|
||||
|
||||
fn read_buf<B: bytes::BufMut>(&mut self, buf: &mut B) -> Poll<usize, io::Error> {
|
||||
self.inner.read_buf(buf)
|
||||
}
|
||||
}
|
||||
|
||||
impl Write for TcpTransStream {
|
||||
#[inline]
|
||||
|
Reference in New Issue
Block a user