Struct uniffi::UnexpectedUniFFICallbackError
source · pub struct UnexpectedUniFFICallbackError {
pub reason: String,
}
Expand description
Used when internal/unexpected error happened when calling a foreign callback, for example when a unknown exception is raised
User callback error types must implement a From impl from this type to their own error type.
Fields§
§reason: String
Implementations§
source§impl UnexpectedUniFFICallbackError
impl UnexpectedUniFFICallbackError
pub fn from_reason(reason: String) -> UnexpectedUniFFICallbackError
Trait Implementations§
source§impl Error for UnexpectedUniFFICallbackError
impl Error for UnexpectedUniFFICallbackError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()