pub struct SpeechRecognitionCanceledEvent {
pub base: SpeechRecognitionEvent,
pub reason: CancellationReason,
pub error_code: CancellationErrorCode,
pub error_details: String,
}
Expand description
Recognition event extending SpeechRecognitionEvent passed into callback set_canceled_cb.
Fields
base: SpeechRecognitionEvent
reason: CancellationReason
error_code: CancellationErrorCode
error_details: String
Implementations
sourceimpl SpeechRecognitionCanceledEvent
impl SpeechRecognitionCanceledEvent
pub fn from_handle(
handle: SPXEVENTHANDLE
) -> Result<SpeechRecognitionCanceledEvent>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpeechRecognitionCanceledEvent
impl Send for SpeechRecognitionCanceledEvent
impl !Sync for SpeechRecognitionCanceledEvent
impl Unpin for SpeechRecognitionCanceledEvent
impl UnwindSafe for SpeechRecognitionCanceledEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more