pub struct FetchOutcome {
pub snapshot: AnthropicSnapshot,
pub stale: bool,
pub last_error: Option<(u16, String)>,
pub cache_age: Option<Duration>,
}Expand description
What we ultimately hand back to the renderer.
Fields§
§snapshot: AnthropicSnapshot§stale: boolTrue if this snapshot came from the on-disk cache because the live
fetch failed — the widget shows a ⏸ indicator in this case.
last_error: Option<(u16, String)>Last fetch error, if any — drives the .last_error tooltip line.
cache_age: Option<Duration>When the on-disk cache was written. Drives the “Updated HH:MM” line.
Trait Implementations§
Source§impl Clone for FetchOutcome
impl Clone for FetchOutcome
Source§fn clone(&self) -> FetchOutcome
fn clone(&self) -> FetchOutcome
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 moreAuto Trait Implementations§
impl Freeze for FetchOutcome
impl RefUnwindSafe for FetchOutcome
impl Send for FetchOutcome
impl Sync for FetchOutcome
impl Unpin for FetchOutcome
impl UnsafeUnpin for FetchOutcome
impl UnwindSafe for FetchOutcome
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more