Skip to main content

FingerprintValidator

Trait FingerprintValidator 

Source
pub trait FingerprintValidator: Send + Sync {
    // Required methods
    fn compute_service_fingerprint<'life0, 'life1, 'async_trait>(
        &'life0 self,
        service: &'life1 ServiceInfo,
    ) -> Pin<Box<dyn Future<Output = Result<Fingerprint>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn verify_fingerprint<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        expected: &'life1 Fingerprint,
        actual: &'life2 Fingerprint,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn compute_project_fingerprint<'life0, 'life1, 'async_trait>(
        &'life0 self,
        project_path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = Result<Fingerprint>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn generate_lock_fingerprint<'life0, 'life1, 'async_trait>(
        &'life0 self,
        deps: &'life1 [ResolvedDependency],
    ) -> Pin<Box<dyn Future<Output = Result<Fingerprint>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Fingerprint computation and validation

Required Methods§

Source

fn compute_service_fingerprint<'life0, 'life1, 'async_trait>( &'life0 self, service: &'life1 ServiceInfo, ) -> Pin<Box<dyn Future<Output = Result<Fingerprint>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Compute service fingerprint

Source

fn verify_fingerprint<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, expected: &'life1 Fingerprint, actual: &'life2 Fingerprint, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Verify fingerprint match

Source

fn compute_project_fingerprint<'life0, 'life1, 'async_trait>( &'life0 self, project_path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = Result<Fingerprint>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Compute project fingerprint

Source

fn generate_lock_fingerprint<'life0, 'life1, 'async_trait>( &'life0 self, deps: &'life1 [ResolvedDependency], ) -> Pin<Box<dyn Future<Output = Result<Fingerprint>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Generate lock file fingerprint

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§