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§
Sourcefn 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 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,
计算服务指纹
Sourcefn 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 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,
验证指纹匹配
Sourcefn 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 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,
计算项目指纹
Sourcefn 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,
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,
生成锁文件指纹