pub enum FactResolutionError {
InvalidFreshnessWindow {
observed_at: OffsetDateTime,
fresh_until: OffsetDateTime,
},
Expired {
received_at: OffsetDateTime,
fresh_until: OffsetDateTime,
},
ObservedInFuture {
observed_at: OffsetDateTime,
received_at: OffsetDateTime,
},
}Expand description
Invalid or stale freshness information in a resolver envelope.
Variants§
InvalidFreshnessWindow
The resolver reported a freshness deadline before its observation time.
Fields
§
observed_at: OffsetDateTimeTime at which the source observed the fact set.
§
fresh_until: OffsetDateTimeReported freshness deadline.
Expired
The resolver result expired before the decision boundary consumed it.
Fields
§
received_at: OffsetDateTimeTime at which Gatekeep received the result.
§
fresh_until: OffsetDateTimeReported freshness deadline.
ObservedInFuture
The source observation is later than the decision boundary consuming it.
Fields
§
observed_at: OffsetDateTimeTime at which the source observed the fact set.
§
received_at: OffsetDateTimeTime at which Gatekeep received the result.
Trait Implementations§
Source§impl Clone for FactResolutionError
impl Clone for FactResolutionError
Source§fn clone(&self) -> FactResolutionError
fn clone(&self) -> FactResolutionError
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 FactResolutionError
impl Debug for FactResolutionError
Source§impl Display for FactResolutionError
impl Display for FactResolutionError
impl Eq for FactResolutionError
Source§impl Error for FactResolutionError
impl Error for FactResolutionError
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<FactResolutionError> for ObservationError
impl From<FactResolutionError> for ObservationError
Source§fn from(source: FactResolutionError) -> Self
fn from(source: FactResolutionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FactResolutionError
impl PartialEq for FactResolutionError
impl StructuralPartialEq for FactResolutionError
Auto Trait Implementations§
impl Freeze for FactResolutionError
impl RefUnwindSafe for FactResolutionError
impl Send for FactResolutionError
impl Sync for FactResolutionError
impl Unpin for FactResolutionError
impl UnsafeUnpin for FactResolutionError
impl UnwindSafe for FactResolutionError
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