Skip to main content

PaintProvider

Trait PaintProvider 

Source
pub trait PaintProvider:
    Debug
    + Send
    + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn version(&self) -> &str;
    fn method(&self) -> EvidenceMethod;
    fn observe(
        &self,
        context: &Context,
    ) -> Result<Vec<ProviderPaintedRegion>, String>;
}
Expand description

Closed provider family for production painter attribution.

Required Methods§

Source

fn id(&self) -> &str

Stable provider identity frozen into the session contract.

Source

fn version(&self) -> &str

Provider implementation version.

Source

fn method(&self) -> EvidenceMethod

How the application obtains painter evidence.

Source

fn observe( &self, context: &Context, ) -> Result<Vec<ProviderPaintedRegion>, String>

Complete painted regions for this committed revision.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§