Struct ISpeechRecognizer
pub struct ISpeechRecognizer(/* private fields */);
Implementations§
§impl ISpeechRecognizer
impl ISpeechRecognizer
pub unsafe fn putref_Recognizer<P0>(&self, recognizer: P0) -> Result<()>where
P0: Param<ISpeechObjectToken>,
pub unsafe fn Recognizer(&self) -> Result<ISpeechObjectToken>
pub unsafe fn SetAllowAudioInputFormatChangesOnNextSet( &self, allow: VARIANT_BOOL, ) -> Result<()>
pub unsafe fn AllowAudioInputFormatChangesOnNextSet( &self, ) -> Result<VARIANT_BOOL>
pub unsafe fn putref_AudioInput<P0>(&self, audioinput: P0) -> Result<()>where
P0: Param<ISpeechObjectToken>,
pub unsafe fn AudioInput(&self) -> Result<ISpeechObjectToken>
pub unsafe fn putref_AudioInputStream<P0>(
&self,
audioinputstream: P0,
) -> Result<()>where
P0: Param<ISpeechBaseStream>,
pub unsafe fn AudioInputStream(&self) -> Result<ISpeechBaseStream>
pub unsafe fn SetState(&self, state: SpeechRecognizerState) -> Result<()>
pub unsafe fn State(&self) -> Result<SpeechRecognizerState>
pub unsafe fn Status(&self) -> Result<ISpeechRecognizerStatus>
pub unsafe fn putref_Profile<P0>(&self, profile: P0) -> Result<()>where
P0: Param<ISpeechObjectToken>,
pub unsafe fn Profile(&self) -> Result<ISpeechObjectToken>
pub unsafe fn EmulateRecognition( &self, textelements: &VARIANT, elementdisplayattributes: *const VARIANT, languageid: i32, ) -> Result<()>
pub unsafe fn CreateRecoContext(&self) -> Result<ISpeechRecoContext>
pub unsafe fn GetFormat( &self, type: SpeechFormatType, ) -> Result<ISpeechAudioFormat>
pub unsafe fn SetPropertyNumber( &self, name: &BSTR, value: i32, ) -> Result<VARIANT_BOOL>
pub unsafe fn GetPropertyNumber( &self, name: &BSTR, value: *mut i32, supported: *mut VARIANT_BOOL, ) -> Result<()>
pub unsafe fn SetPropertyString( &self, name: &BSTR, value: &BSTR, ) -> Result<VARIANT_BOOL>
pub unsafe fn GetPropertyString( &self, name: &BSTR, value: *mut BSTR, supported: *mut VARIANT_BOOL, ) -> Result<()>
pub unsafe fn IsUISupported( &self, typeofui: &BSTR, extradata: *const VARIANT, ) -> Result<VARIANT_BOOL>
pub unsafe fn DisplayUI( &self, hwndparent: i32, title: &BSTR, typeofui: &BSTR, extradata: *const VARIANT, ) -> Result<()>
pub unsafe fn GetRecognizers( &self, requiredattributes: &BSTR, optionalattributes: &BSTR, ) -> Result<ISpeechObjectTokens>
pub unsafe fn GetAudioInputs( &self, requiredattributes: &BSTR, optionalattributes: &BSTR, ) -> Result<ISpeechObjectTokens>
pub unsafe fn GetProfiles( &self, requiredattributes: &BSTR, optionalattributes: &BSTR, ) -> Result<ISpeechObjectTokens>
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 ISpeechRecognizer
impl CanInto<IUnknown> for ISpeechRecognizer
§impl Clone for ISpeechRecognizer
impl Clone for ISpeechRecognizer
§fn clone(&self) -> ISpeechRecognizer
fn clone(&self) -> ISpeechRecognizer
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 ISpeechRecognizer
impl Debug for ISpeechRecognizer
§impl Deref for ISpeechRecognizer
impl Deref for ISpeechRecognizer
§impl From<&ISpeechRecognizer> for &IDispatch
impl From<&ISpeechRecognizer> for &IDispatch
§fn from(value: &ISpeechRecognizer) -> Self
fn from(value: &ISpeechRecognizer) -> Self
Converts to this type from the input type.
§impl From<&ISpeechRecognizer> for &IUnknown
impl From<&ISpeechRecognizer> for &IUnknown
§fn from(value: &ISpeechRecognizer) -> Self
fn from(value: &ISpeechRecognizer) -> Self
Converts to this type from the input type.
§impl From<ISpeechRecognizer> for IDispatch
impl From<ISpeechRecognizer> for IDispatch
§fn from(value: ISpeechRecognizer) -> Self
fn from(value: ISpeechRecognizer) -> Self
Converts to this type from the input type.
§impl From<ISpeechRecognizer> for IUnknown
impl From<ISpeechRecognizer> for IUnknown
§fn from(value: ISpeechRecognizer) -> Self
fn from(value: ISpeechRecognizer) -> Self
Converts to this type from the input type.
§impl Interface for ISpeechRecognizer
impl Interface for ISpeechRecognizer
§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 ISpeechRecognizer
impl PartialEq for ISpeechRecognizer
impl Eq for ISpeechRecognizer
impl StructuralPartialEq for ISpeechRecognizer
Auto Trait Implementations§
impl Freeze for ISpeechRecognizer
impl RefUnwindSafe for ISpeechRecognizer
impl !Send for ISpeechRecognizer
impl !Sync for ISpeechRecognizer
impl Unpin for ISpeechRecognizer
impl UnwindSafe for ISpeechRecognizer
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