#[repr(C)]pub struct FfiResult {
pub error_code: FfiErrorCode,
pub error_message: FfiString,
pub payload: FfiBuffer,
}Expand description
C-ABI result type.
On success: error_code == FfiErrorCode::Ok, error_message is empty,
payload contains the result bytes.
On error: error_code != 0, error_message carries a UTF-8 string,
payload is zeroed.
Always call ffi_result_free when you are done with the result,
regardless of error_code.
Fields§
§error_code: FfiErrorCode§error_message: FfiString§payload: FfiBufferImplementations§
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