pub struct AcceptHealth(/* private fields */);Expand description
Whether one listener has been failing to accept for long enough that its process should stop receiving new connections.
Cheap to clone and lock-free, because a readiness probe reads it while the
accept loop writes it. Feed it through AcceptErrors::with_health.
Implementations§
Source§impl AcceptHealth
impl AcceptHealth
Sourcepub fn is_failing(&self) -> bool
pub fn is_failing(&self) -> bool
Whether accept has failed continuously for PERSISTENT_FAILURE,
most recently within QUIET_AFTER_FAILURE.
Trait Implementations§
Source§impl Clone for AcceptHealth
impl Clone for AcceptHealth
Source§impl Debug for AcceptHealth
impl Debug for AcceptHealth
Auto Trait Implementations§
impl Freeze for AcceptHealth
impl RefUnwindSafe for AcceptHealth
impl Send for AcceptHealth
impl Sync for AcceptHealth
impl Unpin for AcceptHealth
impl UnsafeUnpin for AcceptHealth
impl UnwindSafe for AcceptHealth
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