Skip to main content

DirectoryRepository

Trait DirectoryRepository 

Source
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§

Source

async fn resolve(&self, key: &str) -> Result<Option<u64>>

Source

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".

Implementors§