pub struct MissingTimezoneContextError {
pub reason: MissingTimezoneContextReason,
}Expand description
Typed error returned by crate::evaluator::Environment::current_date and
crate::evaluator::Environment::current_datetime when the host has no
timezone context configured.
Per ADR 0069 D-6, this is the ONLY permissible failure mode — silent UTC
fallback is forbidden. The evaluator translates this error into a structured
DiagnosticKind::MissingTimezoneContext diagnostic so callers can detect
the refusal without parsing message strings.
Fields§
§reason: MissingTimezoneContextReasonWhy the timezone context is missing.
Implementations§
Source§impl MissingTimezoneContextError
impl MissingTimezoneContextError
Sourcepub fn not_configured() -> Self
pub fn not_configured() -> Self
Constructs the common NotConfigured case.
Sourcepub fn multi_calendar_conflict(calendars: Vec<String>) -> Self
pub fn multi_calendar_conflict(calendars: Vec<String>) -> Self
Constructs a MultiCalendarConflict case carrying the calendars whose
timezones disagreed.
Trait Implementations§
Source§impl Clone for MissingTimezoneContextError
impl Clone for MissingTimezoneContextError
Source§impl Debug for MissingTimezoneContextError
impl Debug for MissingTimezoneContextError
impl Eq for MissingTimezoneContextError
Source§impl Error for MissingTimezoneContextError
impl Error for MissingTimezoneContextError
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()
impl StructuralPartialEq for MissingTimezoneContextError
Auto Trait Implementations§
impl Forget for MissingTimezoneContextError
impl Freeze for MissingTimezoneContextError
impl RefUnwindSafe for MissingTimezoneContextError
impl Send for MissingTimezoneContextError
impl Sync for MissingTimezoneContextError
impl Unpin for MissingTimezoneContextError
impl UnsafeUnpin for MissingTimezoneContextError
impl UnwindSafe for MissingTimezoneContextError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.