pub trait RawPoolBufIo: Send {
// Required methods
fn poll_send_reserve(&mut self, cx: &mut Context<'_>) -> Poll<Result<()>>;
fn send_buf(&mut self, buf: PooledBuf, fin: bool) -> Result<()>;
fn poll_recv_buf(&mut self, cx: &mut Context<'_>) -> Poll<Result<PooledBuf>>;
}Expand description
A trait to optimize read and write operations on pooled buffers.
Required Methods§
fn poll_send_reserve(&mut self, cx: &mut Context<'_>) -> Poll<Result<()>>
fn send_buf(&mut self, buf: PooledBuf, fin: bool) -> Result<()>
fn poll_recv_buf(&mut self, cx: &mut Context<'_>) -> Poll<Result<PooledBuf>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".