#[repr(C)]pub struct FfiResult {
pub success: bool,
pub error_code: i32,
pub data: *mut u8,
pub data_len: usize,
}Expand description
Result type returned by FFI functions
Fields§
§success: boolWhether the operation succeeded
error_code: i32Error code (0 = no error, negative = app-defined error)
data: *mut u8Pointer to response data (JSON bytes, caller must free with host_free)
data_len: usizeLength of the response data in bytes
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FfiResult
impl RefUnwindSafe for FfiResult
impl !Send for FfiResult
impl !Sync for FfiResult
impl Unpin for FfiResult
impl UnsafeUnpin for FfiResult
impl UnwindSafe for FfiResult
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