Struct windows::Media::Capture::Frames::MediaFrameReader
pub struct MediaFrameReader(/* private fields */);
Implementations§
§impl MediaFrameReader
impl MediaFrameReader
pub fn Close(&self) -> Result<()>
pub fn FrameArrived<P0>(&self, handler: P0) -> Result<EventRegistrationToken>
pub fn RemoveFrameArrived(&self, token: EventRegistrationToken) -> Result<()>
pub fn TryAcquireLatestFrame(&self) -> Result<MediaFrameReference>
pub fn StartAsync(&self) -> Result<IAsyncOperation<MediaFrameReaderStartStatus>>
pub fn StopAsync(&self) -> Result<IAsyncAction>
pub fn SetAcquisitionMode( &self, value: MediaFrameReaderAcquisitionMode ) -> Result<()>
pub fn AcquisitionMode(&self) -> Result<MediaFrameReaderAcquisitionMode>
Trait Implementations§
§impl Clone for MediaFrameReader
impl Clone for MediaFrameReader
§fn clone(&self) -> MediaFrameReader
fn clone(&self) -> MediaFrameReader
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 MediaFrameReader
impl Debug for MediaFrameReader
§impl From<&MediaFrameReader> for &IInspectable
impl From<&MediaFrameReader> for &IInspectable
§fn from(value: &MediaFrameReader) -> Self
fn from(value: &MediaFrameReader) -> Self
Converts to this type from the input type.
§impl From<&MediaFrameReader> for &IUnknown
impl From<&MediaFrameReader> for &IUnknown
§fn from(value: &MediaFrameReader) -> Self
fn from(value: &MediaFrameReader) -> Self
Converts to this type from the input type.
§impl From<MediaFrameReader> for IInspectable
impl From<MediaFrameReader> for IInspectable
§fn from(value: MediaFrameReader) -> Self
fn from(value: MediaFrameReader) -> Self
Converts to this type from the input type.
§impl From<MediaFrameReader> for IUnknown
impl From<MediaFrameReader> for IUnknown
§fn from(value: MediaFrameReader) -> Self
fn from(value: MediaFrameReader) -> Self
Converts to this type from the input type.
§impl Interface for MediaFrameReader
impl Interface for MediaFrameReader
§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 MediaFrameReader
impl PartialEq for MediaFrameReader
§fn eq(&self, other: &MediaFrameReader) -> bool
fn eq(&self, other: &MediaFrameReader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MediaFrameReader
impl Send for MediaFrameReader
impl StructuralPartialEq for MediaFrameReader
impl Sync for MediaFrameReader
Auto Trait Implementations§
impl RefUnwindSafe for MediaFrameReader
impl Unpin for MediaFrameReader
impl UnwindSafe for MediaFrameReader
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