pub trait mf_IMFMediaSession: mf_IMFMediaEventGenerator {
// Provided methods
fn ClearTopologies(&self) -> HrResult<()> { ... }
fn Close(&self) -> HrResult<()> { ... }
fn GetClock(&self) -> HrResult<IMFClock> { ... }
fn GetFullTopology(
&self,
flags: MFSESSION_GETFULLTOPOLOGY,
topo_id: u64,
) -> HrResult<IMFTopology> { ... }
fn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP> { ... }
fn Pause(&self) -> HrResult<()> { ... }
fn SetTopology(
&self,
flags: MFSESSION_SETTOPOLOGY,
topology: &impl mf_IMFTopology,
) -> HrResult<()> { ... }
fn Shutdown(&self) -> HrResult<()> { ... }
fn Start(
&self,
time_format: MF_TIME_FORMAT,
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
IMFMediaSession
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
Sourcefn ClearTopologies(&self) -> HrResult<()>
fn ClearTopologies(&self) -> HrResult<()>
IMFMediaSession::ClearTopologies
method.
Sourcefn Close(&self) -> HrResult<()>
fn Close(&self) -> HrResult<()>
IMFMediaSession::Close
method.
Sourcefn GetClock(&self) -> HrResult<IMFClock>
fn GetClock(&self) -> HrResult<IMFClock>
IMFMediaSession::GetClock
method.
Sourcefn GetFullTopology(
&self,
flags: MFSESSION_GETFULLTOPOLOGY,
topo_id: u64,
) -> HrResult<IMFTopology>
fn GetFullTopology( &self, flags: MFSESSION_GETFULLTOPOLOGY, topo_id: u64, ) -> HrResult<IMFTopology>
IMFMediaSession::GetFullTopology
method.
Sourcefn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP>
fn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP>
Sourcefn Pause(&self) -> HrResult<()>
fn Pause(&self) -> HrResult<()>
IMFMediaSession::Pause
method.
Sourcefn SetTopology(
&self,
flags: MFSESSION_SETTOPOLOGY,
topology: &impl mf_IMFTopology,
) -> HrResult<()>
fn SetTopology( &self, flags: MFSESSION_SETTOPOLOGY, topology: &impl mf_IMFTopology, ) -> HrResult<()>
IMFMediaSession::SetTopology
method.
Sourcefn Shutdown(&self) -> HrResult<()>
fn Shutdown(&self) -> HrResult<()>
IMFMediaSession::Shutdown
method.
Sourcefn Start(
&self,
time_format: MF_TIME_FORMAT,
start_position: &PropVariant,
) -> HrResult<()>
fn Start( &self, time_format: MF_TIME_FORMAT, start_position: &PropVariant, ) -> HrResult<()>
IMFMediaSession::Start
method.
§Examples
use winsafe::{self as w, prelude::*, co};
let session: w::IMFMediaSession; // initialized somewhere
session.Start(
co::MF_TIME_FORMAT::NULL,
&w::PropVariant::Empty,
)?;
Sourcefn Stop(&self) -> HrResult<()>
fn Stop(&self) -> HrResult<()>
IMFMediaSession::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.