pub enum ReloadError {
ReadCatalog {
path: String,
source: Error,
},
ReadPolicy {
path: String,
source: Error,
},
Validate(LoadError),
RoutingShapeChanged(String),
NoInputs,
}Expand description
Why a reload_generation was rejected. On any of these the previous
generation keeps serving (fail closed); none of them swap.
Variants§
ReadCatalog
The catalog file could not be re-read from its configured path.
ReadPolicy
The policy file could not be re-read from its configured path.
Validate(LoadError)
The candidate catalog/policy failed the full startup/check validation
(load, including the JWT-SVID issuer-alg and publicPath guardrails).
RoutingShapeChanged(String)
The candidate changed a restart-only routing dimension (a backend was
added/removed/repathed, or a key’s backend/path/engine/key_type/
public_path changed). Such an edit needs a re-unlock and is rejected on
the reload path; apply it via a restart instead.
NoInputs
The broker was constructed without ReloadInputs (no configured
catalog/policy paths), so it has nothing to re-read. A reload is a no-op
fail-closed rather than reading from an unknown source.
Implementations§
Source§impl ReloadError
impl ReloadError
Sourcepub const fn audit_reason(&self) -> &'static str
pub const fn audit_reason(&self) -> &'static str
A short, stable, non-secret reason token for the audit trail.
Trait Implementations§
Source§impl Debug for ReloadError
impl Debug for ReloadError
Source§impl Display for ReloadError
impl Display for ReloadError
Source§impl Error for ReloadError
impl Error for ReloadError
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 !RefUnwindSafe for ReloadError
impl !UnwindSafe for ReloadError
impl Freeze for ReloadError
impl Send for ReloadError
impl Sync for ReloadError
impl Unpin for ReloadError
impl UnsafeUnpin for ReloadError
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