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

指纹计算和验证

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,

计算服务指纹

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,

验证指纹匹配

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,

计算项目指纹

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,

生成锁文件指纹

Implementors§