NoopTracer

Struct NoopTracer 

Source
pub struct NoopTracer;
Expand description

Zero-cost tracer that discards all events.

This is the default tracer for QueryRuntime.

Trait Implementations§

Source§

impl Tracer for NoopTracer

Source§

fn new_span_id(&self) -> SpanId

Generate a new unique span ID. Read more
Source§

fn on_query_start(&self, _span_id: SpanId, _query: TracerQueryKey)

Called when a query execution starts.
Source§

fn on_cache_check(&self, _span_id: SpanId, _query: TracerQueryKey, _valid: bool)

Called when cache validity is checked.
Source§

fn on_query_end( &self, _span_id: SpanId, _query: TracerQueryKey, _result: ExecutionResult, )

Called when a query execution ends.
Source§

fn on_dependency_registered( &self, _span_id: SpanId, _parent: TracerQueryKey, _dependency: TracerQueryKey, )

Called when a query dependency is registered during execution.
Source§

fn on_asset_dependency_registered( &self, _span_id: SpanId, _parent: TracerQueryKey, _asset: TracerAssetKey, )

Called when an asset dependency is registered during execution.
Source§

fn on_early_cutoff_check( &self, _span_id: SpanId, _query: TracerQueryKey, _output_changed: bool, )

Called when early cutoff comparison is performed.
Source§

fn on_asset_requested(&self, _asset: TracerAssetKey, _state: TracerAssetState)

Called when an asset is requested.
Source§

fn on_asset_resolved(&self, _asset: TracerAssetKey, _changed: bool)

Called when an asset is resolved with a value.
Source§

fn on_asset_invalidated(&self, _asset: TracerAssetKey)

Called when an asset is invalidated.
Source§

fn on_query_invalidated( &self, _query: TracerQueryKey, _reason: InvalidationReason, )

Called when a query is invalidated.
Source§

fn on_cycle_detected(&self, _path: Vec<TracerQueryKey>)

Called when a dependency cycle is detected.
Source§

fn on_missing_dependency( &self, _query: TracerQueryKey, _dependency_description: String, )

Called when a missing dependency error occurs.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.