#[repr(C)]pub struct ZL_Error_s {
pub _code: ZL_ErrorCode,
pub _info: ZL_ErrorInfo,
}Expand description
ZL_Error:
The ZL_Error represents an optional failure. (If _code is ZL_ErrorCode_no_error, the object represents a success condition.) Depending on how it was constructed, the error may be “bare” (_info == NULL) or “rich”, in which case it has an _info struct that can contain additional context and information about the error.
The ZL_Error is usually returned-by-value, and therefore the definition needs to be publicly available. However, users should not directly interact with the members of the struct, and should instead use the various accessors and methods made available in the public API.
Fields§
§_code: ZL_ErrorCode§_info: ZL_ErrorInfoTrait Implementations§
Source§impl Clone for ZL_Error_s
impl Clone for ZL_Error_s
Source§fn clone(&self) -> ZL_Error_s
fn clone(&self) -> ZL_Error_s
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ZL_Error_s
Auto Trait Implementations§
impl Freeze for ZL_Error_s
impl RefUnwindSafe for ZL_Error_s
impl !Send for ZL_Error_s
impl !Sync for ZL_Error_s
impl Unpin for ZL_Error_s
impl UnwindSafe for ZL_Error_s
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