Struct 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( &self, pevent: *const SPEVENT, hsapirecocontext: SPRECOCONTEXTHANDLE, ) -> Result<()>
pub unsafe fn Synchronize(&self, ullprocessedthrupos: u64) -> Result<()>
pub unsafe fn GetWordInfo( &self, pwordentry: *mut SPWORDENTRY, options: SPWORDINFOOPT, ) -> Result<()>
pub unsafe fn SetWordClientContext( &self, hword: SPWORDHANDLE, pvclientcontext: *const c_void, ) -> Result<()>
pub unsafe fn GetRuleInfo( &self, pruleentry: *mut SPRULEENTRY, options: SPRULEINFOOPT, ) -> Result<()>
pub unsafe fn SetRuleClientContext( &self, hrule: SPRULEHANDLE, pvclientcontext: *const c_void, ) -> Result<()>
pub unsafe fn GetStateInfo( &self, hstate: SPSTATEHANDLE, pstateinfo: *mut SPSTATEINFO, ) -> Result<()>
pub unsafe fn GetResource<P1>(
&self,
hrule: SPRULEHANDLE,
pszresourcename: P1,
) -> Result<PWSTR>where
P1: Param<PCWSTR>,
pub unsafe fn GetTransitionProperty( &self, id: SPTRANSITIONID, ) -> Result<*mut SPTRANSITIONPROPERTY>
pub unsafe fn IsAlternate( &self, hrule: SPRULEHANDLE, haltrule: SPRULEHANDLE, ) -> Result<()>
pub unsafe fn GetMaxAlternates(&self, hrule: SPRULEHANDLE) -> Result<u32>
pub unsafe fn GetContextMaxAlternates( &self, hcontext: SPRECOCONTEXTHANDLE, ) -> Result<u32>
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 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.
§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 ISpSREngineSite
impl PartialEq for ISpSREngineSite
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