Enum uniffi::CallbackResult
source · #[repr(i32)]pub enum CallbackResult {
Success = 0,
Error = 1,
UnexpectedError = 2,
}
Expand description
Reexport items from other uniffi creates Result of a foreign callback invocation
Variants§
Success = 0
Successful call.
The return value is serialized to buf_ptr
.
Error = 1
Expected error.
This is returned when a foreign method throws an exception that corresponds to the Rust Err half of a Result.
The error value is serialized to buf_ptr
.
UnexpectedError = 2
Unexpected error.
An error message string is serialized to buf_ptr
.
Trait Implementations§
source§impl Debug for CallbackResult
impl Debug for CallbackResult
source§impl PartialEq for CallbackResult
impl PartialEq for CallbackResult
source§fn eq(&self, other: &CallbackResult) -> bool
fn eq(&self, other: &CallbackResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for CallbackResult
impl TryFrom<i32> for CallbackResult
impl Eq for CallbackResult
impl StructuralEq for CallbackResult
impl StructuralPartialEq for CallbackResult
Auto Trait Implementations§
impl RefUnwindSafe for CallbackResult
impl Send for CallbackResult
impl Sync for CallbackResult
impl Unpin for CallbackResult
impl UnwindSafe for CallbackResult
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