windows::Win32::Media::MediaFoundation

Trait IMFMediaEngineExtension_Impl

pub trait IMFMediaEngineExtension_Impl: IUnknownImpl {
    // Required methods
    fn CanPlayType(
        &self,
        audioonly: BOOL,
        mimetype: &BSTR,
    ) -> Result<MF_MEDIA_ENGINE_CANPLAY>;
    fn BeginCreateObject(
        &self,
        bstrurl: &BSTR,
        pbytestream: Ref<'_, IMFByteStream>,
        type: MF_OBJECT_TYPE,
        ppiunknowncancelcookie: OutRef<'_, IUnknown>,
        pcallback: Ref<'_, IMFAsyncCallback>,
        punkstate: Ref<'_, IUnknown>,
    ) -> Result<()>;
    fn CancelObjectCreation(
        &self,
        piunknowncancelcookie: Ref<'_, IUnknown>,
    ) -> Result<()>;
    fn EndCreateObject(
        &self,
        presult: Ref<'_, IMFAsyncResult>,
    ) -> Result<IUnknown>;
}

Required Methods§

fn CanPlayType( &self, audioonly: BOOL, mimetype: &BSTR, ) -> Result<MF_MEDIA_ENGINE_CANPLAY>

fn BeginCreateObject( &self, bstrurl: &BSTR, pbytestream: Ref<'_, IMFByteStream>, type: MF_OBJECT_TYPE, ppiunknowncancelcookie: OutRef<'_, IUnknown>, pcallback: Ref<'_, IMFAsyncCallback>, punkstate: Ref<'_, IUnknown>, ) -> Result<()>

fn CancelObjectCreation( &self, piunknowncancelcookie: Ref<'_, IUnknown>, ) -> Result<()>

fn EndCreateObject(&self, presult: Ref<'_, IMFAsyncResult>) -> Result<IUnknown>

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§