pub enum ReloadOutcome {
Success,
RestartRequired(&'static str),
ParseFailed(Error),
}Expand description
Outcome of a single SIGHUP-triggered reload attempt. Reported via the
halephant.config.reloads counter and the structured log event on the
SIGHUP branch in main.
Variants§
Success
New config loaded and swapped in atomically. The caller runs
topology.refresh() and pools.warm_up() so any added nodes,
pools, or min_connections floors take effect immediately.
RestartRequired(&'static str)
The new config parsed successfully but changes one or more fields that are bound at startup (listen sockets, OTel providers, logging subscriber, …). The old config stays in place; operators must restart the process to apply the change.
ParseFailed(Error)
The file could not be read, could not be parsed, or failed validation. The old config stays in place.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ReloadOutcome
impl Freeze for ReloadOutcome
impl Move for ReloadOutcome
impl RefUnwindSafe for ReloadOutcome
impl Send for ReloadOutcome
impl Sync for ReloadOutcome
impl Unpin for ReloadOutcome
impl UnsafeUnpin for ReloadOutcome
impl UnwindSafe for ReloadOutcome
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