Trait ResultTakeBuffer

Source
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§

Source

type BufferPool

The buffer pool of the op.

Source

type Buffer<'a>

The buffer type of the op.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<T: TakeBuffer> ResultTakeBuffer for (BufResult<usize, T>, u32)

Source§

type Buffer<'a> = <T as TakeBuffer>::Buffer<'a>

Source§

type BufferPool = <T as TakeBuffer>::BufferPool

Source§

fn take_buffer(self, pool: &Self::BufferPool) -> Result<Self::Buffer<'_>>

Implementors§