Struct windows::Win32::Media::Speech::ISpeechRecoContext
pub struct ISpeechRecoContext(/* private fields */);
Implementations§
§impl ISpeechRecoContext
impl ISpeechRecoContext
pub unsafe fn Recognizer(&self) -> Result<ISpeechRecognizer>
pub unsafe fn AudioInputInterferenceStatus(&self) -> Result<SpeechInterference>
pub unsafe fn RequestedUIType(&self) -> Result<BSTR>
pub unsafe fn putref_Voice<P0>(&self, voice: P0) -> Result<()>where
P0: Param<ISpeechVoice>,
pub unsafe fn Voice(&self) -> Result<ISpeechVoice>
pub unsafe fn SetAllowVoiceFormatMatchingOnNextSet<P0>(
&self,
allow: P0,
) -> Result<()>where
P0: Param<VARIANT_BOOL>,
pub unsafe fn AllowVoiceFormatMatchingOnNextSet(&self) -> Result<VARIANT_BOOL>
pub unsafe fn SetVoicePurgeEvent( &self, eventinterest: SpeechRecoEvents, ) -> Result<()>
pub unsafe fn VoicePurgeEvent(&self) -> Result<SpeechRecoEvents>
pub unsafe fn SetEventInterests( &self, eventinterest: SpeechRecoEvents, ) -> Result<()>
pub unsafe fn EventInterests(&self) -> Result<SpeechRecoEvents>
pub unsafe fn SetCmdMaxAlternates(&self, maxalternates: i32) -> Result<()>
pub unsafe fn CmdMaxAlternates(&self) -> Result<i32>
pub unsafe fn SetState(&self, state: SpeechRecoContextState) -> Result<()>
pub unsafe fn State(&self) -> Result<SpeechRecoContextState>
pub unsafe fn SetRetainedAudio( &self, option: SpeechRetainedAudioOptions, ) -> Result<()>
pub unsafe fn RetainedAudio(&self) -> Result<SpeechRetainedAudioOptions>
pub unsafe fn putref_RetainedAudioFormat<P0>(&self, format: P0) -> Result<()>where
P0: Param<ISpeechAudioFormat>,
pub unsafe fn RetainedAudioFormat(&self) -> Result<ISpeechAudioFormat>
pub unsafe fn Pause(&self) -> Result<()>
pub unsafe fn Resume(&self) -> Result<()>
pub unsafe fn CreateGrammar<P0>(
&self,
grammarid: P0,
) -> Result<ISpeechRecoGrammar>where
P0: Param<VARIANT>,
pub unsafe fn CreateResultFromMemory( &self, resultblock: *const VARIANT, ) -> Result<ISpeechRecoResult>
pub unsafe fn Bookmark<P0, P1>(
&self,
options: SpeechBookmarkOptions,
streampos: P0,
bookmarkid: P1,
) -> Result<()>where
P0: Param<VARIANT>,
P1: Param<VARIANT>,
pub unsafe fn SetAdaptationData<P0>(&self, adaptationstring: P0) -> Result<()>where
P0: Param<BSTR>,
Methods from Deref<Target = IDispatch>§
pub unsafe fn GetTypeInfoCount(&self) -> Result<u32>
pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> Result<ITypeInfo>
pub unsafe fn GetIDsOfNames( &self, riid: *const GUID, rgsznames: *const PCWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32, ) -> Result<()>
pub unsafe fn Invoke( &self, dispidmember: i32, riid: *const GUID, lcid: u32, wflags: DISPATCH_FLAGS, pdispparams: *const DISPPARAMS, pvarresult: Option<*mut VARIANT>, pexcepinfo: Option<*mut EXCEPINFO>, puargerr: Option<*mut u32>, ) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for ISpeechRecoContext
impl CanInto<IUnknown> for ISpeechRecoContext
§impl Clone for ISpeechRecoContext
impl Clone for ISpeechRecoContext
§fn clone(&self) -> ISpeechRecoContext
fn clone(&self) -> ISpeechRecoContext
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 ISpeechRecoContext
impl Debug for ISpeechRecoContext
§impl Deref for ISpeechRecoContext
impl Deref for ISpeechRecoContext
§impl From<&ISpeechRecoContext> for &IDispatch
impl From<&ISpeechRecoContext> for &IDispatch
§fn from(value: &ISpeechRecoContext) -> Self
fn from(value: &ISpeechRecoContext) -> Self
Converts to this type from the input type.
§impl From<&ISpeechRecoContext> for &IUnknown
impl From<&ISpeechRecoContext> for &IUnknown
§fn from(value: &ISpeechRecoContext) -> Self
fn from(value: &ISpeechRecoContext) -> Self
Converts to this type from the input type.
§impl From<ISpeechRecoContext> for IDispatch
impl From<ISpeechRecoContext> for IDispatch
§fn from(value: ISpeechRecoContext) -> Self
fn from(value: ISpeechRecoContext) -> Self
Converts to this type from the input type.
§impl From<ISpeechRecoContext> for IUnknown
impl From<ISpeechRecoContext> for IUnknown
§fn from(value: ISpeechRecoContext) -> Self
fn from(value: ISpeechRecoContext) -> Self
Converts to this type from the input type.
§impl Interface for ISpeechRecoContext
impl Interface for ISpeechRecoContext
§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§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 ISpeechRecoContext
impl PartialEq for ISpeechRecoContext
§fn eq(&self, other: &ISpeechRecoContext) -> bool
fn eq(&self, other: &ISpeechRecoContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ISpeechRecoContext
impl StructuralPartialEq for ISpeechRecoContext
Auto Trait Implementations§
impl Freeze for ISpeechRecoContext
impl RefUnwindSafe for ISpeechRecoContext
impl !Send for ISpeechRecoContext
impl !Sync for ISpeechRecoContext
impl Unpin for ISpeechRecoContext
impl UnwindSafe for ISpeechRecoContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)