Struct cognitive_services_speech_sdk_rs::error::Error
source · [−]pub struct Error {
pub message: String,
pub caused_by: ErrorRootCause,
}
Expand description
Error struct represents error than can occur during library processing/execution.
Fields
message: String
caused_by: ErrorRootCause
Implementations
sourceimpl Error
impl Error
sourcepub fn new(message: String, caused_by: ErrorRootCause) -> Self
pub fn new(message: String, caused_by: ErrorRootCause) -> Self
Creates new error from custom message and underlying root cause.
sourcepub fn api_error_desc(error_root_cause: &ErrorRootCause) -> Option<String>
pub fn api_error_desc(error_root_cause: &ErrorRootCause) -> Option<String>
Returns description based on API error code.
Trait Implementations
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(error: FromUtf8Error) -> Error
fn from(error: FromUtf8Error) -> Error
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
sourcefn from(error: TryFromIntError) -> Error
fn from(error: TryFromIntError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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