Trait ResultTakeBuffer
pub trait ResultTakeBuffer {
type BufferPool;
type Buffer<'a>;
// Required method
fn take_buffer(
self,
pool: &Self::BufferPool,
) -> Result<Self::Buffer<'_>, Error>;
}Expand description
Helper trait for ReadManagedAt and RecvManaged.
Required Associated Types§
type BufferPool
type BufferPool
The buffer pool of the op.
type Buffer<'a>
type Buffer<'a>
The buffer type of the op.
Required Methods§
fn take_buffer(self, pool: &Self::BufferPool) -> Result<Self::Buffer<'_>, Error>
fn take_buffer(self, pool: &Self::BufferPool) -> Result<Self::Buffer<'_>, Error>
Take the buffer from result.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.