DmaBufAllocatorExtManual

Trait DmaBufAllocatorExtManual 

Source
pub trait DmaBufAllocatorExtManual: IsA<DmaBufAllocator> + 'static {
    // Provided methods
    unsafe fn alloc_dmabuf<A: IntoRawFd>(
        &self,
        fd: A,
        size: usize,
    ) -> Result<Memory, BoolError> { ... }
    unsafe fn alloc_dmabuf_with_flags(
        &self,
        fd: RawFd,
        size: usize,
        flags: FdMemoryFlags,
    ) -> Result<Memory, BoolError> { ... }
}
Available on Linux or docsrs only.

Provided Methods§

Source

unsafe fn alloc_dmabuf<A: IntoRawFd>( &self, fd: A, size: usize, ) -> Result<Memory, BoolError>

Source

unsafe fn alloc_dmabuf_with_flags( &self, fd: RawFd, size: usize, flags: FdMemoryFlags, ) -> Result<Memory, BoolError>

Available on crate feature v1_16 only.

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.

Implementors§

Source§

impl<O: IsA<DmaBufAllocator>> DmaBufAllocatorExtManual for O

Available on Linux only.