#[repr(C)]pub struct C4Error {
pub domain: C4ErrorDomain,
pub code: c_int,
pub internal_info: c_uint,
}Expand description
An error value. These are returned by reference from API calls whose last parameter is a C4Error*. The semantics are based on Cocoa’s usage of NSError: A caller can pass NULL if it doesn’t care about the error. The error is filled in only if the function fails, as indicated by its return value (e.g. false or NULL.) If the function doesn’t fail, it does NOT zero out the error, so its contents should be considered uninitialized garbage.
Fields§
§domain: C4ErrorDomain§code: c_int§internal_info: c_uintTrait Implementations§
Auto Trait Implementations§
impl Freeze for C4Error
impl RefUnwindSafe for C4Error
impl Send for C4Error
impl Sync for C4Error
impl Unpin for C4Error
impl UnwindSafe for C4Error
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