pub trait DirectoryRepository {
// Required methods
async fn resolve(&self, key: &str) -> Result<Option<u64>>;
async fn put(&self, key: &str, id: u64) -> Result<()>;
}Expand description
Port over the directory so resolution can be mocked / swapped.
Required Methods§
async fn resolve(&self, key: &str) -> Result<Option<u64>>
async fn put(&self, key: &str, id: u64) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".