pub struct ResolverMetadata {
pub dispatch_count: Arc<AtomicU32>,
pub datastore_queries: Arc<AtomicU32>,
pub cache_hits: Arc<AtomicU32>,
pub max_depth_reached: Arc<AtomicU32>,
}Expand description
Shared counters for tracking resolver performance across recursive dispatches.
Uses Arc<AtomicU32> so that child requests created via child_request()
share the same counters and increments are visible to the caller.
Fields§
§dispatch_count: Arc<AtomicU32>§datastore_queries: Arc<AtomicU32>§cache_hits: Arc<AtomicU32>§max_depth_reached: Arc<AtomicU32>Implementations§
Source§impl ResolverMetadata
impl ResolverMetadata
Sourcepub fn get_dispatch_count(&self) -> u32
pub fn get_dispatch_count(&self) -> u32
Read the current dispatch count.
Sourcepub fn get_datastore_queries(&self) -> u32
pub fn get_datastore_queries(&self) -> u32
Read the current datastore query count.
Sourcepub fn get_cache_hits(&self) -> u32
pub fn get_cache_hits(&self) -> u32
Read the current cache hit count.
Sourcepub fn get_max_depth_reached(&self) -> u32
pub fn get_max_depth_reached(&self) -> u32
Read the maximum resolution depth reached.
Trait Implementations§
Source§impl Clone for ResolverMetadata
impl Clone for ResolverMetadata
Source§fn clone(&self) -> ResolverMetadata
fn clone(&self) -> ResolverMetadata
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 moreSource§impl Debug for ResolverMetadata
impl Debug for ResolverMetadata
Auto Trait Implementations§
impl Freeze for ResolverMetadata
impl RefUnwindSafe for ResolverMetadata
impl Send for ResolverMetadata
impl Sync for ResolverMetadata
impl Unpin for ResolverMetadata
impl UnsafeUnpin for ResolverMetadata
impl UnwindSafe for ResolverMetadata
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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