pub enum ReconcileError {
RequiredMissing(Vec<String>),
Probe {
key: String,
source: BackendError,
},
Generate {
key: String,
source: ManagerError,
},
}Expand description
A fatal reconcile failure (fail closed).
Either a backend was unreachable while probing for a key (never treated as
“absent”), one or more required keys are missing, or generating an absent
missing="generate" key failed.
Variants§
RequiredMissing(Vec<String>)
One or more missing="error" (or default) keys are absent from their
backend. Every such key is reported, not just the first.
Probe
A backend was unreachable (or otherwise failed) while probing a key’s existence. This is not “absent”: a down backend at startup is fatal, so reconcile fails closed rather than generating over a real-but-unreachable key.
Fields
source: BackendErrorThe underlying backend error (transport / rejection).
Generate
Generating material for an absent missing="generate" key failed.
Fields
source: ManagerErrorThe underlying manager/backend error.
Trait Implementations§
Source§impl Debug for ReconcileError
impl Debug for ReconcileError
Source§impl Display for ReconcileError
impl Display for ReconcileError
Source§impl Error for ReconcileError
impl Error for ReconcileError
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
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ReconcileError
impl RefUnwindSafe for ReconcileError
impl Send for ReconcileError
impl Sync for ReconcileError
impl Unpin for ReconcileError
impl UnsafeUnpin for ReconcileError
impl UnwindSafe for ReconcileError
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
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request