#[repr(i8)]pub enum RustCallStatusCode {
Success = 0,
Error = 1,
UnexpectedError = 2,
Cancelled = 3,
}
Expand description
Reexport items from other uniffi creates Result of a FFI call to a Rust function
Variants§
Success = 0
Successful call.
Error = 1
Expected error, corresponding to the Result::Err
variant. RustCallStatus::error_buf
will contain the serialized error.
UnexpectedError = 2
Unexpected error. RustCallStatus::error_buf will contain a serialized message string
Cancelled = 3
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§
Source§impl Debug for RustCallStatusCode
impl Debug for RustCallStatusCode
Source§impl PartialEq for RustCallStatusCode
impl PartialEq for RustCallStatusCode
impl Eq for RustCallStatusCode
impl StructuralPartialEq for RustCallStatusCode
Auto Trait Implementations§
impl Freeze for RustCallStatusCode
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