#[non_exhaustive]pub enum ApplicationLifecycleError {
InvalidComponentLabel(String),
DuplicateComponent(String),
UnknownComponent(String),
TooManyComponents,
InvalidTransition {
from: ApplicationPhase,
to: ApplicationPhase,
},
StateUnavailable,
InvalidDrainWait,
DrainTimedOut {
in_flight: usize,
},
RequestCapacityExhausted,
RequestNotAdmitted {
phase: ApplicationPhase,
},
}Expand description
Typed lifecycle construction, transition, and drain failures.
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.
InvalidComponentLabel(String)
A readiness component label is empty, too long, or ambiguous.
DuplicateComponent(String)
A readiness component was registered more than once.
UnknownComponent(String)
The readiness component is not part of the immutable registry.
TooManyComponents
Too many readiness components were requested.
InvalidTransition
A transition would move the lifecycle backwards.
The readiness registry lock was poisoned and is denied rather than trusted.
InvalidDrainWait
A drain wait must have a bounded, non-zero deadline.
DrainTimedOut
Accepted requests remained active until the configured deadline.
RequestCapacityExhausted
The in-flight counter cannot safely accept another request.
RequestNotAdmitted
Startup, a dependency gate, or draining currently denies admission.
Fields
§
phase: ApplicationPhasePhase observed when admission was denied.
Trait Implementations§
Source§impl Clone for ApplicationLifecycleError
impl Clone for ApplicationLifecycleError
Source§impl Debug for ApplicationLifecycleError
impl Debug for ApplicationLifecycleError
Source§impl Display for ApplicationLifecycleError
impl Display for ApplicationLifecycleError
impl Eq for ApplicationLifecycleError
Source§impl Error for ApplicationLifecycleError
impl Error for ApplicationLifecycleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ApplicationLifecycleError> for ServerError
impl From<ApplicationLifecycleError> for ServerError
Source§fn from(source: ApplicationLifecycleError) -> Self
fn from(source: ApplicationLifecycleError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ApplicationLifecycleError
Auto Trait Implementations§
impl Freeze for ApplicationLifecycleError
impl RefUnwindSafe for ApplicationLifecycleError
impl Send for ApplicationLifecycleError
impl Sync for ApplicationLifecycleError
impl Unpin for ApplicationLifecycleError
impl UnsafeUnpin for ApplicationLifecycleError
impl UnwindSafe for ApplicationLifecycleError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP