pub struct UnexpectedUniFFICallbackError {
pub reason: String,
}
Expand description
Reexport items from other uniffi creates 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)>
Returns 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()
Auto Trait Implementations§
impl Freeze for UnexpectedUniFFICallbackError
impl RefUnwindSafe for UnexpectedUniFFICallbackError
impl Send for UnexpectedUniFFICallbackError
impl Sync for UnexpectedUniFFICallbackError
impl Unpin for UnexpectedUniFFICallbackError
impl UnwindSafe for UnexpectedUniFFICallbackError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more