Struct windows::Media::Capture::Frames::MediaFrameReference
pub struct MediaFrameReference(/* private fields */);
Implementations§
§impl MediaFrameReference
impl MediaFrameReference
pub fn Close(&self) -> Result<()>
pub fn SourceKind(&self) -> Result<MediaFrameSourceKind>
pub fn Format(&self) -> Result<MediaFrameFormat>
pub fn SystemRelativeTime(&self) -> Result<IReference<TimeSpan>>
pub fn Duration(&self) -> Result<TimeSpan>
pub fn Properties(&self) -> Result<IMapView<GUID, IInspectable>>
pub fn BufferMediaFrame(&self) -> Result<BufferMediaFrame>
pub fn VideoMediaFrame(&self) -> Result<VideoMediaFrame>
pub fn CoordinateSystem(&self) -> Result<SpatialCoordinateSystem>
pub fn AudioMediaFrame(&self) -> Result<AudioMediaFrame>
Trait Implementations§
§impl Clone for MediaFrameReference
impl Clone for MediaFrameReference
§fn clone(&self) -> MediaFrameReference
fn clone(&self) -> MediaFrameReference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for MediaFrameReference
impl Debug for MediaFrameReference
§impl From<&MediaFrameReference> for &IInspectable
impl From<&MediaFrameReference> for &IInspectable
§fn from(value: &MediaFrameReference) -> Self
fn from(value: &MediaFrameReference) -> Self
Converts to this type from the input type.
§impl From<&MediaFrameReference> for &IUnknown
impl From<&MediaFrameReference> for &IUnknown
§fn from(value: &MediaFrameReference) -> Self
fn from(value: &MediaFrameReference) -> Self
Converts to this type from the input type.
§impl From<MediaFrameReference> for IInspectable
impl From<MediaFrameReference> for IInspectable
§fn from(value: MediaFrameReference) -> Self
fn from(value: MediaFrameReference) -> Self
Converts to this type from the input type.
§impl From<MediaFrameReference> for IUnknown
impl From<MediaFrameReference> for IUnknown
§fn from(value: MediaFrameReference) -> Self
fn from(value: MediaFrameReference) -> Self
Converts to this type from the input type.
§impl Interface for MediaFrameReference
impl Interface for MediaFrameReference
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for MediaFrameReference
impl PartialEq for MediaFrameReference
§fn eq(&self, other: &MediaFrameReference) -> bool
fn eq(&self, other: &MediaFrameReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MediaFrameReference
impl Send for MediaFrameReference
impl StructuralPartialEq for MediaFrameReference
impl Sync for MediaFrameReference
Auto Trait Implementations§
impl RefUnwindSafe for MediaFrameReference
impl Unpin for MediaFrameReference
impl UnwindSafe for MediaFrameReference
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