Struct winsafe::IMFMediaSession
source · pub struct IMFMediaSession(/* private fields */);
Available on crate feature
mf
only.Expand description
IMFMediaSession
COM interface over IMFMediaSessionVT
.
Automatically calls
Release
when the object goes out of scope.
§Examples
use winsafe::{self as w, prelude::*};
let media_session = w::MFCreateMediaSession(None::<&w::IMFAttributes>)?;
Trait Implementations§
source§impl Clone for IMFMediaSession
impl Clone for IMFMediaSession
source§impl Drop for IMFMediaSession
impl Drop for IMFMediaSession
source§impl mf_IMFMediaEventGenerator for IMFMediaSession
impl mf_IMFMediaEventGenerator for IMFMediaSession
source§fn BeginGetEvent(
&self,
callback: &impl mf_IMFAsyncCallback,
state: Option<&impl ole_IUnknown>
) -> HrResult<()>
fn BeginGetEvent( &self, callback: &impl mf_IMFAsyncCallback, state: Option<&impl ole_IUnknown> ) -> HrResult<()>
source§fn EndGetEvent(
&self,
result: &impl mf_IMFAsyncResult
) -> HrResult<IMFMediaEvent>
fn EndGetEvent( &self, result: &impl mf_IMFAsyncResult ) -> HrResult<IMFMediaEvent>
source§fn GetEvent(&self, flags: Option<MF_EVENT_FLAG>) -> HrResult<IMFMediaEvent>
fn GetEvent(&self, flags: Option<MF_EVENT_FLAG>) -> HrResult<IMFMediaEvent>
IMFMediaEventGenerator::GetEvent
method.source§fn QueueEvent(
&self,
met: ME,
extended_type: &GUID,
status: HRESULT,
value: Option<&PROPVARIANT>
) -> HrResult<()>
fn QueueEvent( &self, met: ME, extended_type: &GUID, status: HRESULT, value: Option<&PROPVARIANT> ) -> HrResult<()>
source§impl mf_IMFMediaSession for IMFMediaSession
impl mf_IMFMediaSession for IMFMediaSession
source§fn ClearTopologies(&self) -> HrResult<()>
fn ClearTopologies(&self) -> HrResult<()>
IMFMediaSession::ClearTopologies
method.source§fn GetFullTopology(
&self,
flags: MFSESSION_GETFULLTOPOLOGY,
topo_id: u64
) -> HrResult<IMFTopology>
fn GetFullTopology( &self, flags: MFSESSION_GETFULLTOPOLOGY, topo_id: u64 ) -> HrResult<IMFTopology>
IMFMediaSession::GetFullTopology
method.source§fn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP>
fn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP>
source§fn SetTopology(
&self,
flags: MFSESSION_SETTOPOLOGY,
topology: &impl mf_IMFTopology
) -> HrResult<()>
fn SetTopology( &self, flags: MFSESSION_SETTOPOLOGY, topology: &impl mf_IMFTopology ) -> HrResult<()>
IMFMediaSession::SetTopology
method.source§fn 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. Read moresource§impl ole_IUnknown for IMFMediaSession
impl ole_IUnknown for IMFMediaSession
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole
only.Creates an object from a COM virtual table pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole
only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole
only.Returns the pointer to the underlying COM virtual table. Read more
source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole
only.Creates an object from a null COM virtual table pointer. Read more
source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole
only.IUnknown::QueryInterface
method.impl Send for IMFMediaSession
Auto Trait Implementations§
impl RefUnwindSafe for IMFMediaSession
impl !Sync for IMFMediaSession
impl Unpin for IMFMediaSession
impl UnwindSafe for IMFMediaSession
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more