pub struct ResolveOutcome {
pub result: FetchResult,
pub cache_hit: bool,
}Expand description
Outcome of a Resolver::fetch call: the provider’s result PLUS whether
the value came from a cache tier or a fresh provider invocation.
ChartML::fetch uses this to populate FetchMetadata.cache_hits /
cache_misses per source name without needing the resolver to know about
source names itself (which it doesn’t — it works in keys, not names).
Fields§
§result: FetchResult§cache_hit: boolTrait Implementations§
Source§impl Clone for ResolveOutcome
impl Clone for ResolveOutcome
Source§fn clone(&self) -> ResolveOutcome
fn clone(&self) -> ResolveOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 ResolveOutcome
impl !RefUnwindSafe for ResolveOutcome
impl Send for ResolveOutcome
impl Sync for ResolveOutcome
impl Unpin for ResolveOutcome
impl UnsafeUnpin for ResolveOutcome
impl !UnwindSafe for ResolveOutcome
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