ISpRecoContextVtbl

Struct ISpRecoContextVtbl 

Source
#[repr(C)]
pub struct ISpRecoContextVtbl {
Show 19 fields pub parent: ISpEventSourceVtbl, pub GetRecognizer: unsafe extern "system" fn(This: *mut ISpRecoContext, ppRecognizer: *mut *mut ISpRecognizer) -> HRESULT, pub CreateGrammer: unsafe extern "system" fn(This: *mut ISpRecoContext, ullGrammarId: ULONGLONG, ppGrammar: *mut *mut ISpRecoGrammar) -> HRESULT, pub GetStatus: unsafe extern "system" fn(This: *mut ISpRecoContext, pState: *mut SPRECOCONTEXTSTATUS) -> HRESULT, pub GetMaxAlternates: unsafe extern "system" fn(This: *mut ISpRecoContext, pcAlternates: *mut ULONG) -> HRESULT, pub SetMaxAlternates: unsafe extern "system" fn(This: *mut ISpRecoContext, cAlternates: ULONG) -> HRESULT, pub SetAudioOptions: unsafe extern "system" fn(This: *mut ISpRecoContext, Options: SPAUDIOOPTIONS, pAudioFormatId: *const GUID, pWaveFormatEx: *const WAVEFORMATEX) -> HRESULT, pub GetAudioOptions: unsafe extern "system" fn(This: *mut ISpRecoContext, pOptions: *mut SPAUDIOOPTIONS, pAudioFormatId: *mut GUID, ppCoMemWFEX: *mut *mut WAVEFORMATEX) -> HRESULT, pub DeserializeResult: unsafe extern "system" fn(This: *mut ISpRecoContext, pSerializedResult: *const SPSERIALIZEDRESULT, ppResult: *mut *mut ISpRecoResult) -> HRESULT, pub Bookmark: unsafe extern "system" fn(This: *mut ISpRecoContext, Options: SPBOOKMARKOPTIONS, ullStreamPosition: ULONGLONG, lparamEvent: LPARAM) -> HRESULT, pub SetAdaptionData: unsafe extern "system" fn(This: *mut ISpRecoContext, pAdaptionData: LPCWSTR, cch: ULONG) -> HRESULT, pub Pause: unsafe extern "system" fn(This: *mut ISpRecoContext, dwReserved: DWORD) -> HRESULT, pub Resume: unsafe extern "system" fn(This: *mut ISpRecoContext, dwReserved: DWORD) -> HRESULT, pub SetVoice: unsafe extern "system" fn(This: *mut ISpRecoContext, pVoice: *mut ISpVoice, fAllowFormatChanges: BOOL) -> HRESULT, pub GetVoice: unsafe extern "system" fn(This: *mut ISpRecoContext, ppVoice: *mut *mut ISpVoice) -> HRESULT, pub SetVoicePurgeEvent: unsafe extern "system" fn(This: *mut ISpRecoContext, ullEventIntereset: ULONGLONG) -> HRESULT, pub GetVoicePurgeEvent: unsafe extern "system" fn(This: *mut ISpRecoContext, pullEventIntereset: *mut ULONGLONG) -> HRESULT, pub SetContextState: unsafe extern "system" fn(This: *mut ISpRecoContext, eContextState: SPCONTEXTSTATE) -> HRESULT, pub GetContextState: unsafe extern "system" fn(This: *mut ISpRecoContext, peContextState: *mut SPCONTEXTSTATE) -> HRESULT,
}

Fields§

§parent: ISpEventSourceVtbl§GetRecognizer: unsafe extern "system" fn(This: *mut ISpRecoContext, ppRecognizer: *mut *mut ISpRecognizer) -> HRESULT§CreateGrammer: unsafe extern "system" fn(This: *mut ISpRecoContext, ullGrammarId: ULONGLONG, ppGrammar: *mut *mut ISpRecoGrammar) -> HRESULT§GetStatus: unsafe extern "system" fn(This: *mut ISpRecoContext, pState: *mut SPRECOCONTEXTSTATUS) -> HRESULT§GetMaxAlternates: unsafe extern "system" fn(This: *mut ISpRecoContext, pcAlternates: *mut ULONG) -> HRESULT§SetMaxAlternates: unsafe extern "system" fn(This: *mut ISpRecoContext, cAlternates: ULONG) -> HRESULT§SetAudioOptions: unsafe extern "system" fn(This: *mut ISpRecoContext, Options: SPAUDIOOPTIONS, pAudioFormatId: *const GUID, pWaveFormatEx: *const WAVEFORMATEX) -> HRESULT§GetAudioOptions: unsafe extern "system" fn(This: *mut ISpRecoContext, pOptions: *mut SPAUDIOOPTIONS, pAudioFormatId: *mut GUID, ppCoMemWFEX: *mut *mut WAVEFORMATEX) -> HRESULT§DeserializeResult: unsafe extern "system" fn(This: *mut ISpRecoContext, pSerializedResult: *const SPSERIALIZEDRESULT, ppResult: *mut *mut ISpRecoResult) -> HRESULT§Bookmark: unsafe extern "system" fn(This: *mut ISpRecoContext, Options: SPBOOKMARKOPTIONS, ullStreamPosition: ULONGLONG, lparamEvent: LPARAM) -> HRESULT§SetAdaptionData: unsafe extern "system" fn(This: *mut ISpRecoContext, pAdaptionData: LPCWSTR, cch: ULONG) -> HRESULT§Pause: unsafe extern "system" fn(This: *mut ISpRecoContext, dwReserved: DWORD) -> HRESULT§Resume: unsafe extern "system" fn(This: *mut ISpRecoContext, dwReserved: DWORD) -> HRESULT§SetVoice: unsafe extern "system" fn(This: *mut ISpRecoContext, pVoice: *mut ISpVoice, fAllowFormatChanges: BOOL) -> HRESULT§GetVoice: unsafe extern "system" fn(This: *mut ISpRecoContext, ppVoice: *mut *mut ISpVoice) -> HRESULT§SetVoicePurgeEvent: unsafe extern "system" fn(This: *mut ISpRecoContext, ullEventIntereset: ULONGLONG) -> HRESULT§GetVoicePurgeEvent: unsafe extern "system" fn(This: *mut ISpRecoContext, pullEventIntereset: *mut ULONGLONG) -> HRESULT§SetContextState: unsafe extern "system" fn(This: *mut ISpRecoContext, eContextState: SPCONTEXTSTATE) -> HRESULT§GetContextState: unsafe extern "system" fn(This: *mut ISpRecoContext, peContextState: *mut SPCONTEXTSTATE) -> HRESULT

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.