#[non_exhaustive]pub enum PostHogError<'a> {
Capture(CaptureFailure<'a>),
FeatureFlags(FlagsFailure<'a>),
LocalEvaluation(LocalEvaluationFailure<'a>),
}Expand description
A terminal failure on one of the SDK’s network surfaces, passed by reference
to each registered on_error hook.
#[non_exhaustive]: new variants may be added as more surfaces gain hook
coverage, so a match must include a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Capture(CaptureFailure<'a>)
A capture batch the SDK gave up delivering (permanent reject, exhausted
retries, serialization failure) or — on the V1 pipeline — a 2xx whose
per-event verdicts left events unpersisted after the retry budget.
FeatureFlags(FlagsFailure<'a>)
A remote /flags request that failed (transport error, non-success
status, or an unparseable response body).
LocalEvaluation(LocalEvaluationFailure<'a>)
A background local-evaluation definitions poll that failed (transport error, non-success status, or an unparseable response body). The SDK keeps serving the previously cached definitions.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PostHogError<'a>
impl<'a> RefUnwindSafe for PostHogError<'a>
impl<'a> Send for PostHogError<'a>
impl<'a> Sync for PostHogError<'a>
impl<'a> Unpin for PostHogError<'a>
impl<'a> UnsafeUnpin for PostHogError<'a>
impl<'a> UnwindSafe for PostHogError<'a>
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