Struct uniffi::ffi::UnexpectedUniFFICallbackError
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§
§impl UnexpectedUniFFICallbackError
impl UnexpectedUniFFICallbackError
pub fn new(reason: impl Display) -> UnexpectedUniFFICallbackError
Trait Implementations§
§impl Debug for UnexpectedUniFFICallbackError
impl Debug for UnexpectedUniFFICallbackError
§impl Display for UnexpectedUniFFICallbackError
impl Display for UnexpectedUniFFICallbackError
§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 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
§impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
impl<T, UT> HandleAlloc<UT> for Twhere T: Send + Sync,
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>