#[non_exhaustive]pub enum PingoraError {
Config(ConfigError),
Bind {
addr: SocketAddr,
source: Error,
},
Resolve {
route: String,
upstream: String,
reason: String,
},
AppAddress(String),
FallbackTls,
FallbackLoop(SocketAddr),
AlreadyStarted,
}Expand description
A startup failure. Boot stops. The plugin never falls back silently. Autumn shows the message in its boot error.
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.
Config(ConfigError)
The configuration is not valid.
Bind
The listener cannot bind.
Resolve
An upstream address does not resolve.
Fields
AppAddress(String)
The Autumn app address does not resolve.
FallbackTls
The fallback target serves TLS. v0.1 has no upstream TLS.
FallbackLoop(SocketAddr)
The proxy would send unmatched requests to itself.
AlreadyStarted
The startup hook ran again, or the proxy stopped before it started.
Trait Implementations§
Source§impl Debug for PingoraError
impl Debug for PingoraError
Source§impl Display for PingoraError
impl Display for PingoraError
Source§impl Error for PingoraError
impl Error for PingoraError
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<ConfigError> for PingoraError
impl From<ConfigError> for PingoraError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PingoraError
impl !UnwindSafe for PingoraError
impl Forget for PingoraError
impl Freeze for PingoraError
impl Send for PingoraError
impl Sync for PingoraError
impl Unpin for PingoraError
impl UnsafeUnpin for PingoraError
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> 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> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.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