pub trait AsyncStream:
AsyncRead
+ AsyncWrite
+ 'static
+ Send
+ Sync {
// Provided method
fn poll_read_alloc(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<IoResult<Vec<u8>>> { ... }
}Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".