Struct winsafe::IMFGetService
source · pub struct IMFGetService(/* private fields */);
Available on crate feature
mf
only.Expand description
IMFGetService
COM interface over IMFGetServiceVT
.
Automatically calls
IUnknown::Release
when the object goes out of scope.
§Examples
use winsafe::{self as w, prelude::*};
let vmr: w::IBaseFilter; // initialized somewhere
let get_svc = vmr.QueryInterface::<w::IMFGetService>()?;
Trait Implementations§
source§impl Clone for IMFGetService
impl Clone for IMFGetService
source§impl Drop for IMFGetService
impl Drop for IMFGetService
source§impl mf_IMFGetService for IMFGetService
impl mf_IMFGetService for IMFGetService
source§fn GetService<T>(&self, service_id: &MF_SERVICE) -> HrResult<T>where
T: ole_IUnknown,
fn GetService<T>(&self, service_id: &MF_SERVICE) -> HrResult<T>where
T: ole_IUnknown,
IMFGetService::GetService
method. Read moresource§impl ole_IUnknown for IMFGetService
impl ole_IUnknown for IMFGetService
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 IMFGetService
Auto Trait Implementations§
impl RefUnwindSafe for IMFGetService
impl !Sync for IMFGetService
impl Unpin for IMFGetService
impl UnwindSafe for IMFGetService
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