pub enum InterruptCause {
ConnectionReset,
IdleStall,
GoAway,
Provider5xxMidStream(u16),
ResumedFromCheckpoint,
}Expand description
Cause of a mid-stream interruption.
Variants§
ConnectionReset
Underlying socket reset (TCP RST, ECONNRESET) while receiving events.
IdleStall
No delta received within the configured idle window.
GoAway
HTTP/2 GOAWAY or equivalent server-initiated disconnect.
Provider5xxMidStream(u16)
Provider returned a 5xx status after headers had been sent.
ResumedFromCheckpoint
Synthetic cause used when a stream is being resumed from a persisted checkpoint (no real interruption happened in this process — the previous process crashed or restarted).
Trait Implementations§
Source§impl Clone for InterruptCause
impl Clone for InterruptCause
Source§fn clone(&self) -> InterruptCause
fn clone(&self) -> InterruptCause
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 moreSource§impl Debug for InterruptCause
impl Debug for InterruptCause
Auto Trait Implementations§
impl Freeze for InterruptCause
impl RefUnwindSafe for InterruptCause
impl Send for InterruptCause
impl Sync for InterruptCause
impl Unpin for InterruptCause
impl UnsafeUnpin for InterruptCause
impl UnwindSafe for InterruptCause
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
fn into_option(self) -> Option<T>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.