pub enum CancellationReason {
Error,
EndOfStream,
CancelledByUser,
}
Expand description
CancellationReason defines the possible reasons a recognition result might be canceled.
Variants
Error
Indicates that an error occurred during speech recognition.
EndOfStream
Indicates that the end of the audio stream was reached.
CancelledByUser
Indicates that request was cancelled by the user.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CancellationReason
impl Send for CancellationReason
impl Sync for CancellationReason
impl Unpin for CancellationReason
impl UnwindSafe for CancellationReason
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