pub enum Observation {
NotRequired,
Fresh {
observed_at: OffsetDateTime,
},
Cached {
observed_at: OffsetDateTime,
},
Degraded {
reason: String,
cached_as_of: OffsetDateTime,
retry_at: OffsetDateTime,
},
}Expand description
Freshness of the GitHub observation behind the Task’s returned PR state.
The durable attempt metadata lives on TaskPr; this derived view tells one
caller whether it read GitHub, reused a recent reading, or opened a degraded
circuit while preserving the cached PR fields.
Variants§
NotRequired
No remote read applies, as for an unpublished working PR.
Fresh
GitHub answered during this reconcile.
Fields
§
observed_at: OffsetDateTimeCached
A recent successful reading was reused without spending another request.
Fields
§
observed_at: OffsetDateTimeDegraded
A bounded read failed. The reason and retry boundary are durable, so later local controls reuse the cached state without hammering GitHub.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
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 Observation
impl Debug for Observation
Source§impl Default for Observation
impl Default for Observation
Source§fn default() -> Observation
fn default() -> Observation
Returns the “default value” for a type. Read more
impl Eq for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
Source§impl Serialize for Observation
impl Serialize for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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.