Struct windows::Win32::Media::Speech::ISpSREngineSite
pub struct ISpSREngineSite(/* private fields */);
Implementations§
§impl ISpSREngineSite
impl ISpSREngineSite
pub unsafe fn Read(&self, pv: *const c_void, cb: u32) -> Result<u32>
pub unsafe fn DataAvailable(&self) -> Result<u32>
pub unsafe fn SetBufferNotifySize(&self, cbsize: u32) -> Result<()>
pub unsafe fn ParseFromTransitions( &self, pparseinfo: *const SPPARSEINFO, ) -> Result<ISpPhraseBuilder>
pub unsafe fn Recognition( &self, presultinfo: *const SPRECORESULTINFO, ) -> Result<()>
pub unsafe fn AddEvent<P0>(
&self,
pevent: *const SPEVENT,
hsapirecocontext: P0,
) -> Result<()>where
P0: Param<SPRECOCONTEXTHANDLE>,
pub unsafe fn Synchronize(&self, ullprocessedthrupos: u64) -> Result<()>
pub unsafe fn GetWordInfo( &self, pwordentry: *mut SPWORDENTRY, options: SPWORDINFOOPT, ) -> Result<()>
pub unsafe fn SetWordClientContext<P0>(
&self,
hword: P0,
pvclientcontext: *const c_void,
) -> Result<()>where
P0: Param<SPWORDHANDLE>,
pub unsafe fn GetRuleInfo( &self, pruleentry: *mut SPRULEENTRY, options: SPRULEINFOOPT, ) -> Result<()>
pub unsafe fn SetRuleClientContext<P0>(
&self,
hrule: P0,
pvclientcontext: *const c_void,
) -> Result<()>where
P0: Param<SPRULEHANDLE>,
pub unsafe fn GetStateInfo<P0>(
&self,
hstate: P0,
pstateinfo: *mut SPSTATEINFO,
) -> Result<()>where
P0: Param<SPSTATEHANDLE>,
pub unsafe fn GetResource<P0, P1>(
&self,
hrule: P0,
pszresourcename: P1,
) -> Result<PWSTR>where
P0: Param<SPRULEHANDLE>,
P1: Param<PCWSTR>,
pub unsafe fn GetTransitionProperty<P0>(
&self,
id: P0,
) -> Result<*mut SPTRANSITIONPROPERTY>where
P0: Param<SPTRANSITIONID>,
pub unsafe fn IsAlternate<P0, P1>(&self, hrule: P0, haltrule: P1) -> Result<()>where
P0: Param<SPRULEHANDLE>,
P1: Param<SPRULEHANDLE>,
pub unsafe fn GetMaxAlternates<P0>(&self, hrule: P0) -> Result<u32>where
P0: Param<SPRULEHANDLE>,
pub unsafe fn GetContextMaxAlternates<P0>(&self, hcontext: P0) -> Result<u32>where
P0: Param<SPRECOCONTEXTHANDLE>,
pub unsafe fn UpdateRecoPos(&self, ullcurrentrecopos: u64) -> Result<()>
Trait Implementations§
§impl CanInto<ISpSREngineSite> for ISpSREngineSite2
impl CanInto<ISpSREngineSite> for ISpSREngineSite2
§impl CanInto<IUnknown> for ISpSREngineSite
impl CanInto<IUnknown> for ISpSREngineSite
§impl Clone for ISpSREngineSite
impl Clone for ISpSREngineSite
§fn clone(&self) -> ISpSREngineSite
fn clone(&self) -> ISpSREngineSite
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 ISpSREngineSite
impl Debug for ISpSREngineSite
§impl Deref for ISpSREngineSite
impl Deref for ISpSREngineSite
§impl From<&ISpSREngineSite> for &IUnknown
impl From<&ISpSREngineSite> for &IUnknown
§fn from(value: &ISpSREngineSite) -> Self
fn from(value: &ISpSREngineSite) -> Self
Converts to this type from the input type.
§impl From<&ISpSREngineSite2> for &ISpSREngineSite
impl From<&ISpSREngineSite2> for &ISpSREngineSite
§fn from(value: &ISpSREngineSite2) -> Self
fn from(value: &ISpSREngineSite2) -> Self
Converts to this type from the input type.
§impl From<ISpSREngineSite> for IUnknown
impl From<ISpSREngineSite> for IUnknown
§fn from(value: ISpSREngineSite) -> Self
fn from(value: ISpSREngineSite) -> Self
Converts to this type from the input type.
§impl From<ISpSREngineSite2> for ISpSREngineSite
impl From<ISpSREngineSite2> for ISpSREngineSite
§fn from(value: ISpSREngineSite2) -> Self
fn from(value: ISpSREngineSite2) -> Self
Converts to this type from the input type.
§impl Interface for ISpSREngineSite
impl Interface for ISpSREngineSite
§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 ISpSREngineSite
impl PartialEq for ISpSREngineSite
§fn eq(&self, other: &ISpSREngineSite) -> bool
fn eq(&self, other: &ISpSREngineSite) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ISpSREngineSite
impl StructuralPartialEq for ISpSREngineSite
Auto Trait Implementations§
impl Freeze for ISpSREngineSite
impl RefUnwindSafe for ISpSREngineSite
impl !Send for ISpSREngineSite
impl !Sync for ISpSREngineSite
impl Unpin for ISpSREngineSite
impl UnwindSafe for ISpSREngineSite
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
)