Struct windows::Media::Capture::MediaCaptureFailedEventHandler
pub struct MediaCaptureFailedEventHandler(/* private fields */);
Implementations§
§impl MediaCaptureFailedEventHandler
impl MediaCaptureFailedEventHandler
pub fn new<F: FnMut(Option<&MediaCapture>, Option<&MediaCaptureFailedEventArgs>) -> Result<()> + Send + 'static>( invoke: F ) -> Self
pub fn Invoke<P0, P1>(&self, sender: P0, erroreventargs: P1) -> Result<()>where
P0: IntoParam<MediaCapture>,
P1: IntoParam<MediaCaptureFailedEventArgs>,
Trait Implementations§
§impl Clone for MediaCaptureFailedEventHandler
impl Clone for MediaCaptureFailedEventHandler
§fn clone(&self) -> MediaCaptureFailedEventHandler
fn clone(&self) -> MediaCaptureFailedEventHandler
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 MediaCaptureFailedEventHandler
impl Debug for MediaCaptureFailedEventHandler
§impl Interface for MediaCaptureFailedEventHandler
impl Interface for MediaCaptureFailedEventHandler
§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 MediaCaptureFailedEventHandler
impl PartialEq for MediaCaptureFailedEventHandler
§fn eq(&self, other: &MediaCaptureFailedEventHandler) -> bool
fn eq(&self, other: &MediaCaptureFailedEventHandler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MediaCaptureFailedEventHandler
impl StructuralPartialEq for MediaCaptureFailedEventHandler
Auto Trait Implementations§
impl RefUnwindSafe for MediaCaptureFailedEventHandler
impl !Send for MediaCaptureFailedEventHandler
impl !Sync for MediaCaptureFailedEventHandler
impl Unpin for MediaCaptureFailedEventHandler
impl UnwindSafe for MediaCaptureFailedEventHandler
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