#[repr(C)]pub struct CResult {
pub success: bool,
pub error_message: *const c_char,
}Expand description
Result type for C ABI functions
Fields§
§success: bool§error_message: *const c_charOptional null-terminated error message.
§Ownership
This pointer is borrowed and must not be freed by the caller. Callers should copy it immediately if they need to keep it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CResult
impl RefUnwindSafe for CResult
impl !Send for CResult
impl !Sync for CResult
impl Unpin for CResult
impl UnwindSafe for CResult
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