Struct windows::Media::Capture::AppCapture
pub struct AppCapture(/* private fields */);
Implementations§
§impl AppCapture
impl AppCapture
pub fn IsCapturingAudio(&self) -> Result<bool>
pub fn IsCapturingVideo(&self) -> Result<bool>
pub fn CapturingChanged<P0>( &self, handler: P0 ) -> Result<EventRegistrationToken>
pub fn RemoveCapturingChanged( &self, token: EventRegistrationToken ) -> Result<()>
pub fn GetForCurrentView() -> Result<AppCapture>
pub fn SetAllowedAsync(allowed: bool) -> Result<IAsyncAction>
Trait Implementations§
§impl Clone for AppCapture
impl Clone for AppCapture
§fn clone(&self) -> AppCapture
fn clone(&self) -> AppCapture
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 AppCapture
impl Debug for AppCapture
§impl From<&AppCapture> for &IInspectable
impl From<&AppCapture> for &IInspectable
§fn from(value: &AppCapture) -> Self
fn from(value: &AppCapture) -> Self
Converts to this type from the input type.
§impl From<&AppCapture> for &IUnknown
impl From<&AppCapture> for &IUnknown
§fn from(value: &AppCapture) -> Self
fn from(value: &AppCapture) -> Self
Converts to this type from the input type.
§impl From<AppCapture> for IInspectable
impl From<AppCapture> for IInspectable
§fn from(value: AppCapture) -> Self
fn from(value: AppCapture) -> Self
Converts to this type from the input type.
§impl From<AppCapture> for IUnknown
impl From<AppCapture> for IUnknown
§fn from(value: AppCapture) -> Self
fn from(value: AppCapture) -> Self
Converts to this type from the input type.
§impl Interface for AppCapture
impl Interface for AppCapture
§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 AppCapture
impl PartialEq for AppCapture
§fn eq(&self, other: &AppCapture) -> bool
fn eq(&self, other: &AppCapture) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AppCapture
impl StructuralPartialEq for AppCapture
Auto Trait Implementations§
impl RefUnwindSafe for AppCapture
impl !Send for AppCapture
impl !Sync for AppCapture
impl Unpin for AppCapture
impl UnwindSafe for AppCapture
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