#[repr(C)]pub struct FfiResult {
pub code: c_int,
pub data: *mut u8,
pub data_len: usize,
pub error: *const c_char,
}Expand description
Result structure for FFI calls
Fields§
§code: c_int0 = success, non-zero = error code
data: *mut u8Pointer to result data (JSON bytes)
data_len: usizeLength of result data
error: *const c_charError message (null if success)
Auto Trait Implementations§
impl Freeze for FfiResult
impl RefUnwindSafe for FfiResult
impl !Send for FfiResult
impl !Sync for FfiResult
impl Unpin 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