pub enum CloseReason {
Idle,
ResponsesReached,
RequestsReached,
Drain,
Aborted,
}Expand description
Why a flow reached teardown. Surfaces in the access log on close.
Variants§
Idle
Idle timeout elapsed (no datagram in either direction).
ResponsesReached
The configured responses count was reached (e.g. DNS = 1 reply).
RequestsReached
The configured requests count was reached.
Drain
The listener is draining.
Aborted
The flow was aborted by the shell before it could serve traffic — the
upstream connect() failed (EMFILE / refused) or no backend resolved.
Distinct from Idle so the access log shows the flow never established,
rather than implying it timed out.
Trait Implementations§
Source§impl Clone for CloseReason
impl Clone for CloseReason
Source§fn clone(&self) -> CloseReason
fn clone(&self) -> CloseReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CloseReason
Source§impl Debug for CloseReason
impl Debug for CloseReason
impl Eq for CloseReason
Source§impl PartialEq for CloseReason
impl PartialEq for CloseReason
Source§fn eq(&self, other: &CloseReason) -> bool
fn eq(&self, other: &CloseReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl Freeze for CloseReason
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnsafeUnpin for CloseReason
impl UnwindSafe for CloseReason
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.