pub enum InstanceError {
Bind9InstanceUnavailable {
endpoint: String,
status_code: u16,
},
HttpConnectionFailed {
endpoint: String,
reason: String,
},
HttpRequestTimeout {
endpoint: String,
timeout_ms: u64,
},
UnexpectedHttpResponse {
endpoint: String,
status_code: u16,
reason: String,
},
}Expand description
Errors related to BIND9 instance availability and connectivity.
These errors occur when the Bindcar HTTP API is unreachable or returns gateway errors, indicating the BIND9 instance or bindcar service is unavailable.
Variants§
BIND9 instance unavailable (HTTP 502 Bad Gateway or 503 Service Unavailable)
Returned when the bindcar HTTP API returns a gateway error, indicating the underlying BIND9 instance is not responding or the bindcar process cannot communicate with BIND9.
HttpConnectionFailed
HTTP connection failed (network unreachable, connection refused, timeout)
Returned when the HTTP client cannot establish a connection to the bindcar API. This indicates network issues, the pod being down, or the service not listening.
Fields
HttpRequestTimeout
HTTP request timeout
Returned when an HTTP request to bindcar exceeds the configured timeout. This typically indicates a heavily loaded or unresponsive BIND9 instance.
Fields
UnexpectedHttpResponse
Unexpected HTTP response from bindcar API
Returned when bindcar returns an unexpected HTTP status code that doesn’t map to a known error condition.
Trait Implementations§
Source§impl Clone for InstanceError
impl Clone for InstanceError
Source§fn clone(&self) -> InstanceError
fn clone(&self) -> InstanceError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstanceError
impl Debug for InstanceError
Source§impl Display for InstanceError
impl Display for InstanceError
Source§impl Error for InstanceError
impl Error for InstanceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<InstanceError> for DnsError
impl From<InstanceError> for DnsError
Source§fn from(source: InstanceError) -> Self
fn from(source: InstanceError) -> Self
Auto Trait Implementations§
impl Freeze for InstanceError
impl RefUnwindSafe for InstanceError
impl Send for InstanceError
impl Sync for InstanceError
impl Unpin for InstanceError
impl UnwindSafe for InstanceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.