PropertyTracer

Trait PropertyTracer 

Source
pub trait PropertyTracer: Send + Sync {
    // Required methods
    fn on_found(
        &self,
        name: &str,
        value: &PropertyValue,
        context: DisplayContext,
    );
    fn on_error(&self, error: SearchError);
}
Expand description

A callback which is called by the Context when a property is found

Provides debug information about the current context’s constraints under which the property was found.

Required Methods§

Source

fn on_found(&self, name: &str, value: &PropertyValue, context: DisplayContext)

Source

fn on_error(&self, error: SearchError)

Implementations on Foreign Types§

Source§

impl<T: ?Sized + PropertyTracer> PropertyTracer for Arc<T>

Source§

fn on_found(&self, name: &str, value: &PropertyValue, context: DisplayContext)

Source§

fn on_error(&self, error: SearchError)

Implementors§