Skip to main content

VerifierService

Type Alias VerifierService 

Source
pub(crate) type VerifierService = Cached<Fallback<Batch<Verifier, Item>, ServiceFn<fn(Item) -> BoxFuture<'static, Result<(), Box<dyn Error + Send + Sync>>>>>>;
Expand description

The concrete type of the global Sapling verification service.

Aliased Type§

pub(crate) struct VerifierService {
    inner: Fallback<Batch<Verifier, Item>, ServiceFn<fn(Item) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send>>>>,
    verified: Arc<Mutex<VerifiedBundles>>,
    metrics: CacheMetrics,
}

Fields§

§inner: Fallback<Batch<Verifier, Item>, ServiceFn<fn(Item) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send>>>>

The verification service to consult on a miss.

§verified: Arc<Mutex<VerifiedBundles>>

The keys of items that have already verified under this cache’s verifying key.

§metrics: CacheMetrics

The metric handles shared by clones of this cache.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 168 bytes