Enum uniffi::ffi::rustcalls::RustCallStatusCode
#[repr(i8)]pub enum RustCallStatusCode {
Success,
Error,
UnexpectedError,
Cancelled,
}
Expand description
Result of a FFI call to a Rust function
Variants§
Success
Successful call.
Error
Expected error, corresponding to the Result::Err
variant. RustCallStatus::error_buf
will contain the serialized error.
UnexpectedError
Unexpected error. RustCallStatus::error_buf will contain a serialized message string
Cancelled
Async function cancelled. RustCallStatus::error_buf will be empty and does not need to be freed.
This is only returned for async functions and only if the bindings code uses the [rust_future_cancel] call.
Trait Implementations§
§impl Debug for RustCallStatusCode
impl Debug for RustCallStatusCode
§impl PartialEq<RustCallStatusCode> for RustCallStatusCode
impl PartialEq<RustCallStatusCode> for RustCallStatusCode
§fn eq(&self, other: &RustCallStatusCode) -> bool
fn eq(&self, other: &RustCallStatusCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RustCallStatusCode
impl StructuralEq for RustCallStatusCode
impl StructuralPartialEq for RustCallStatusCode
Auto Trait Implementations§
impl RefUnwindSafe for RustCallStatusCode
impl Send for RustCallStatusCode
impl Sync for RustCallStatusCode
impl Unpin for RustCallStatusCode
impl UnwindSafe for RustCallStatusCode
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<>