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§
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()
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
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>