pub trait MutexedCaches: Debug {
type MetadataFs: UnifiedFs;
type ResolveCache: AsyncMutex<CacheInstance<ResolveConfig, Self::MetadataFs>> + Debug;
type HostCahae: AsyncMutex<CacheInstance<HostConfig, Self::MetadataFs>> + Debug;
}
Expand description
This trait is a common interface for the ASYNC IO operation and syncronization.
The implentation of this trait is mandatory to provide access to the IO and synchronization for the crate.
Required Associated Types§
Sourcetype MetadataFs: UnifiedFs
type MetadataFs: UnifiedFs
A type which could be used for the File IO operations. This type must implement UnifiedFs which is a common interface for the required IO operations.
Sourcetype ResolveCache: AsyncMutex<CacheInstance<ResolveConfig, Self::MetadataFs>> + Debug
type ResolveCache: AsyncMutex<CacheInstance<ResolveConfig, Self::MetadataFs>> + Debug
An async mutex realization for the pre-specified type of CacheInstance ResolveConfig.
This is generally a [Mutex] implementation whuch is defined in trait AsyncMutex.
Sourcetype HostCahae: AsyncMutex<CacheInstance<HostConfig, Self::MetadataFs>> + Debug
type HostCahae: AsyncMutex<CacheInstance<HostConfig, Self::MetadataFs>> + Debug
An async mutex realization for the pre-specified type of CacheInstance HostConfig.
This is generally a [Mutex] implementation whuch is defined in trait AsyncMutex.