pub trait BufferHandle: Sized {
    // Required methods
    fn try_clone(&self) -> Result<Self, Error>;
    fn get_mapping(
        &self,
        offset: usize,
        size: usize
    ) -> Result<MemoryMappingArena, MmapError>;
}
Expand description

Trait for types that can serve as video buffer backing memory.

Required Methods§

source

fn try_clone(&self) -> Result<Self, Error>

Try to clone this handle. This must only create a new reference to the same backing memory and not duplicate the buffer itself.

source

fn get_mapping( &self, offset: usize, size: usize ) -> Result<MemoryMappingArena, MmapError>

Returns a linear mapping of [offset..offset+size] of the memory backing this buffer.

Object Safety§

This trait is not object safe.

Implementors§