Struct MediaCaptureInitializationSettings
pub struct MediaCaptureInitializationSettings(/* private fields */);
Implementations§
§impl MediaCaptureInitializationSettings
impl MediaCaptureInitializationSettings
pub fn new() -> Result<Self>
pub fn SetAudioDeviceId(&self, value: &HSTRING) -> Result<()>
pub fn AudioDeviceId(&self) -> Result<HSTRING>
pub fn SetVideoDeviceId(&self, value: &HSTRING) -> Result<()>
pub fn VideoDeviceId(&self) -> Result<HSTRING>
pub fn SetStreamingCaptureMode(&self, value: StreamingCaptureMode) -> Result<()>
pub fn StreamingCaptureMode(&self) -> Result<StreamingCaptureMode>
pub fn SetPhotoCaptureSource(&self, value: PhotoCaptureSource) -> Result<()>
pub fn PhotoCaptureSource(&self) -> Result<PhotoCaptureSource>
pub fn SetMediaCategory(&self, value: MediaCategory) -> Result<()>
pub fn MediaCategory(&self) -> Result<MediaCategory>
pub fn SetAudioProcessing(&self, value: AudioProcessing) -> Result<()>
pub fn AudioProcessing(&self) -> Result<AudioProcessing>
pub fn SetAudioSource<P0>(&self, value: P0) -> Result<()>where
P0: Param<IMediaSource>,
pub fn AudioSource(&self) -> Result<IMediaSource>
pub fn SetVideoSource<P0>(&self, value: P0) -> Result<()>where
P0: Param<IMediaSource>,
pub fn VideoSource(&self) -> Result<IMediaSource>
pub fn VideoProfile(&self) -> Result<MediaCaptureVideoProfile>
pub fn SetVideoProfile<P0>(&self, value: P0) -> Result<()>where
P0: Param<MediaCaptureVideoProfile>,
pub fn PreviewMediaDescription( &self, ) -> Result<MediaCaptureVideoProfileMediaDescription>
pub fn SetPreviewMediaDescription<P0>(&self, value: P0) -> Result<()>where
P0: Param<MediaCaptureVideoProfileMediaDescription>,
pub fn RecordMediaDescription( &self, ) -> Result<MediaCaptureVideoProfileMediaDescription>
pub fn SetRecordMediaDescription<P0>(&self, value: P0) -> Result<()>where
P0: Param<MediaCaptureVideoProfileMediaDescription>,
pub fn PhotoMediaDescription( &self, ) -> Result<MediaCaptureVideoProfileMediaDescription>
pub fn SetPhotoMediaDescription<P0>(&self, value: P0) -> Result<()>where
P0: Param<MediaCaptureVideoProfileMediaDescription>,
pub fn SourceGroup(&self) -> Result<MediaFrameSourceGroup>
pub fn SetSourceGroup<P0>(&self, value: P0) -> Result<()>where
P0: Param<MediaFrameSourceGroup>,
pub fn SharingMode(&self) -> Result<MediaCaptureSharingMode>
pub fn SetSharingMode(&self, value: MediaCaptureSharingMode) -> Result<()>
pub fn MemoryPreference(&self) -> Result<MediaCaptureMemoryPreference>
pub fn SetMemoryPreference( &self, value: MediaCaptureMemoryPreference, ) -> Result<()>
pub fn AlwaysPlaySystemShutterSound(&self) -> Result<bool>
pub fn SetAlwaysPlaySystemShutterSound(&self, value: bool) -> Result<()>
pub fn DeviceUriPasswordCredential(&self) -> Result<PasswordCredential>
pub fn SetDeviceUriPasswordCredential<P0>(&self, value: P0) -> Result<()>where
P0: Param<PasswordCredential>,
pub fn DeviceUri(&self) -> Result<Uri>
pub fn SetDeviceUri<P0>(&self, value: P0) -> Result<()>where
P0: Param<Uri>,
Trait Implementations§
§impl CanInto<IInspectable> for MediaCaptureInitializationSettings
impl CanInto<IInspectable> for MediaCaptureInitializationSettings
§impl CanInto<IUnknown> for MediaCaptureInitializationSettings
impl CanInto<IUnknown> for MediaCaptureInitializationSettings
§impl Clone for MediaCaptureInitializationSettings
impl Clone for MediaCaptureInitializationSettings
§fn clone(&self) -> MediaCaptureInitializationSettings
fn clone(&self) -> MediaCaptureInitializationSettings
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 MediaCaptureInitializationSettings
impl Debug for MediaCaptureInitializationSettings
§impl From<&MediaCaptureInitializationSettings> for &IInspectable
impl From<&MediaCaptureInitializationSettings> for &IInspectable
§fn from(value: &MediaCaptureInitializationSettings) -> Self
fn from(value: &MediaCaptureInitializationSettings) -> Self
Converts to this type from the input type.
§impl From<&MediaCaptureInitializationSettings> for &IUnknown
impl From<&MediaCaptureInitializationSettings> for &IUnknown
§fn from(value: &MediaCaptureInitializationSettings) -> Self
fn from(value: &MediaCaptureInitializationSettings) -> Self
Converts to this type from the input type.
§impl From<MediaCaptureInitializationSettings> for IInspectable
impl From<MediaCaptureInitializationSettings> for IInspectable
§fn from(value: MediaCaptureInitializationSettings) -> Self
fn from(value: MediaCaptureInitializationSettings) -> Self
Converts to this type from the input type.
§impl From<MediaCaptureInitializationSettings> for IUnknown
impl From<MediaCaptureInitializationSettings> for IUnknown
§fn from(value: MediaCaptureInitializationSettings) -> Self
fn from(value: MediaCaptureInitializationSettings) -> Self
Converts to this type from the input type.
§impl Interface for MediaCaptureInitializationSettings
impl Interface for MediaCaptureInitializationSettings
§const IID: GUID = <IMediaCaptureInitializationSettings as windows_core::Interface>::IID
const IID: GUID = <IMediaCaptureInitializationSettings as windows_core::Interface>::IID
The
GUID
associated with the interface.§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for MediaCaptureInitializationSettings
impl PartialEq for MediaCaptureInitializationSettings
§fn eq(&self, other: &MediaCaptureInitializationSettings) -> bool
fn eq(&self, other: &MediaCaptureInitializationSettings) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for MediaCaptureInitializationSettings
impl Send for MediaCaptureInitializationSettings
impl StructuralPartialEq for MediaCaptureInitializationSettings
impl Sync for MediaCaptureInitializationSettings
Auto Trait Implementations§
impl Freeze for MediaCaptureInitializationSettings
impl RefUnwindSafe for MediaCaptureInitializationSettings
impl Unpin for MediaCaptureInitializationSettings
impl UnwindSafe for MediaCaptureInitializationSettings
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