pub trait mf_IMFMediaSource: mf_IMFMediaEventGenerator {
// Provided methods
fn GetCharacteristics(&self) -> HrResult<MFMEDIASOURCE> { ... }
fn CreatePresentationDescriptor(
&self,
) -> HrResult<IMFPresentationDescriptor> { ... }
fn Pause(&self) -> HrResult<()> { ... }
fn Shutdown(&self) -> HrResult<()> { ... }
fn Start(
&self,
presentation_descriptor: IMFPresentationDescriptor,
time_format: Option<&GUID>,
start_position: &PropVariant,
) -> HrResult<()> { ... }
fn Stop(&self) -> HrResult<()> { ... }
}
Available on crate features
kernel
and mf
only.Expand description
This trait is enabled with the mf
feature, and provides methods for
IMFMediaSource
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
Sourcefn GetCharacteristics(&self) -> HrResult<MFMEDIASOURCE>
fn GetCharacteristics(&self) -> HrResult<MFMEDIASOURCE>
Sourcefn Pause(&self) -> HrResult<()>
fn Pause(&self) -> HrResult<()>
IMFMediaSource::Pause
method.
Sourcefn Shutdown(&self) -> HrResult<()>
fn Shutdown(&self) -> HrResult<()>
IMFMediaSource::Shutdown
method.
Sourcefn Start(
&self,
presentation_descriptor: IMFPresentationDescriptor,
time_format: Option<&GUID>,
start_position: &PropVariant,
) -> HrResult<()>
fn Start( &self, presentation_descriptor: IMFPresentationDescriptor, time_format: Option<&GUID>, start_position: &PropVariant, ) -> HrResult<()>
IMFMediaSource::Start
method.
Sourcefn Stop(&self) -> HrResult<()>
fn Stop(&self) -> HrResult<()>
IMFMediaSource::Stop
method.
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.