pub enum FailureCause {
Server {
reason: ErrorReason,
},
Http {
status: f64,
body_preview: Option<String>,
},
ZeroCache {
reason: ErrorReason,
},
}Expand description
Why a push or transform failed: the origin and reason of
pushFailedBodySchema and transformFailedBodySchema, whose three
variants each allow different combinations.
Variants§
Server
origin: 'server': the API server reported the failure.
Fields
§
reason: ErrorReasonHttp
origin: 'zeroCache', reason: 'http': the API server answered with a
non-OK status.
ZeroCache
origin: 'zeroCache' with reason timeout, parse, or internal.
Fields
§
reason: ErrorReasonImplementations§
Source§impl FailureCause
impl FailureCause
pub fn origin(&self) -> ErrorOrigin
pub fn reason(&self) -> ErrorReason
Trait Implementations§
Source§impl Clone for FailureCause
impl Clone for FailureCause
Source§impl Debug for FailureCause
impl Debug for FailureCause
Source§impl PartialEq for FailureCause
impl PartialEq for FailureCause
impl StructuralPartialEq for FailureCause
Auto Trait Implementations§
impl Forget for FailureCause
impl Freeze for FailureCause
impl Move for FailureCause
impl RefUnwindSafe for FailureCause
impl Send for FailureCause
impl Sync for FailureCause
impl Unpin for FailureCause
impl UnsafeUnpin for FailureCause
impl UnwindSafe for FailureCause
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