pub enum TemplateReloadError {
Acquire(String),
Compile(String),
PathEscape(String),
Cycle(String),
DuplicateIdentity(String),
BoundExceeded(&'static str),
Timeout,
StaleGeneration,
}Expand description
Errors raised by the external template component during acquisition, compilation, reload, and the resolve-time validation of operator-supplied resource limits.
All variants carry enough context to drive operator-visible logging while
staying Clone so the error can be moved into a BoxProcessor response
(CamelError: Clone) without consuming the original.
Variants§
Acquire(String)
Compile(String)
PathEscape(String)
Cycle(String)
DuplicateIdentity(String)
BoundExceeded(&'static str)
A limit field was set to zero at resolve time. Zero is rejected because the limits enforce fail-closed bounding; allowing zero would silently disable the bound.
Timeout
The reload exceeded reload_timeout_ms; the late build must not swap.
StaleGeneration
A build tagged at a generation that has already been superseded reached the commit step and must be rejected.
Trait Implementations§
Source§impl Clone for TemplateReloadError
impl Clone for TemplateReloadError
Source§fn clone(&self) -> TemplateReloadError
fn clone(&self) -> TemplateReloadError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemplateReloadError
impl Debug for TemplateReloadError
Source§impl Display for TemplateReloadError
impl Display for TemplateReloadError
Source§impl Error for TemplateReloadError
impl Error for TemplateReloadError
1.30.0 · 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<TemplateReloadError> for CamelError
impl From<TemplateReloadError> for CamelError
Source§fn from(err: TemplateReloadError) -> Self
fn from(err: TemplateReloadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TemplateReloadError
impl RefUnwindSafe for TemplateReloadError
impl Send for TemplateReloadError
impl Sync for TemplateReloadError
impl Unpin for TemplateReloadError
impl UnsafeUnpin for TemplateReloadError
impl UnwindSafe for TemplateReloadError
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