ProjectReferenceCache

Trait ProjectReferenceCache 

Source
pub trait ProjectReferenceCache {
    // Required methods
    fn list(
        &self,
    ) -> impl Future<Output = Result<HashSet<String>, SkootError>> + Send;
    fn get(
        &mut self,
        repo_url: String,
    ) -> impl Future<Output = Result<InitializedProject, SkootError>> + Send;
    fn set(
        &mut self,
        repo_url: String,
    ) -> impl Future<Output = Result<(), SkootError>> + Send;
    fn delete(
        &mut self,
        repo_url: String,
    ) -> impl Future<Output = Result<(), SkootError>> + Send;
}

Required Methods§

Source

fn list( &self, ) -> impl Future<Output = Result<HashSet<String>, SkootError>> + Send

Source

fn get( &mut self, repo_url: String, ) -> impl Future<Output = Result<InitializedProject, SkootError>> + Send

Source

fn set( &mut self, repo_url: String, ) -> impl Future<Output = Result<(), SkootError>> + Send

Source

fn delete( &mut self, repo_url: String, ) -> impl Future<Output = Result<(), SkootError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§