windows::Win32::Media::DirectShow

Trait IMemAllocator_Impl

pub trait IMemAllocator_Impl: IUnknownImpl {
    // Required methods
    fn SetProperties(
        &self,
        prequest: *const ALLOCATOR_PROPERTIES,
    ) -> Result<ALLOCATOR_PROPERTIES>;
    fn GetProperties(&self) -> Result<ALLOCATOR_PROPERTIES>;
    fn Commit(&self) -> Result<()>;
    fn Decommit(&self) -> Result<()>;
    fn GetBuffer(
        &self,
        ppbuffer: OutRef<'_, IMediaSample>,
        pstarttime: *const i64,
        pendtime: *const i64,
        dwflags: u32,
    ) -> Result<()>;
    fn ReleaseBuffer(&self, pbuffer: Ref<'_, IMediaSample>) -> Result<()>;
}

Required Methods§

fn SetProperties( &self, prequest: *const ALLOCATOR_PROPERTIES, ) -> Result<ALLOCATOR_PROPERTIES>

fn GetProperties(&self) -> Result<ALLOCATOR_PROPERTIES>

fn Commit(&self) -> Result<()>

fn Decommit(&self) -> Result<()>

fn GetBuffer( &self, ppbuffer: OutRef<'_, IMediaSample>, pstarttime: *const i64, pendtime: *const i64, dwflags: u32, ) -> Result<()>

fn ReleaseBuffer(&self, pbuffer: Ref<'_, IMediaSample>) -> 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.

Implementors§