pub trait ResultTakeBuffer {
type BufferPool;
type Buffer<'a>;
// Required method
fn take_buffer(self, pool: &Self::BufferPool) -> Result<Self::Buffer<'_>>;
}
Expand description
Helper trait for ReadManagedAt
and RecvManaged
.
Required Associated Types§
Sourcetype BufferPool
type BufferPool
The buffer pool of the op.
Required Methods§
Sourcefn take_buffer(self, pool: &Self::BufferPool) -> Result<Self::Buffer<'_>>
fn take_buffer(self, pool: &Self::BufferPool) -> Result<Self::Buffer<'_>>
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.