#[repr(C)]pub struct AvisoError {
pub kind: AvisoErrorKind,
pub http_status: u16,
pub message: *const c_char,
pub request_id: *const c_char,
pub trigger_kind: *const c_char,
pub error_kind: *const c_char,
}Expand description
C-visible error detail. The const char* fields borrow from the owning
AvisoOutcome and are valid until it is freed. A pointer
is null when the field does not apply (request_id when unknown,
trigger_kind / error_kind unless kind is AvisoErrorKind_Trigger).
Fields§
§kind: AvisoErrorKindThe error kind.
http_status: u16HTTP status when kind is AvisoErrorKind_Http, else 0.
message: *const c_charHuman-readable message (never null). Credentials are never included; server-supplied error text (such as an HTTP response body) may be.
request_id: *const c_charServer-supplied request id, or null when unknown.
trigger_kind: *const c_charTrigger label when kind is AvisoErrorKind_Trigger, else null.
error_kind: *const c_charTrigger inner-error label when applicable, else null.
Auto Trait Implementations§
impl !Send for AvisoError
impl !Sync for AvisoError
impl Freeze for AvisoError
impl RefUnwindSafe for AvisoError
impl Unpin for AvisoError
impl UnsafeUnpin for AvisoError
impl UnwindSafe for AvisoError
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