Trait Layer2
Source pub trait Layer2: Debug {
type Descr: Layer2Descriptor<LoadError = Self::LoadError, StoreError = Self::StoreError>;
type Data: Layer2Data<LoadError = Self::LoadError, StoreError = Self::StoreError>;
type Cache: Layer2Cache<LoadError = Self::LoadError, StoreError = Self::StoreError>;
type LoadError: Error;
type StoreError: Error;
// Required methods
fn load(path: &Path) -> Result<Self, Self::LoadError>
where Self: Sized;
fn store(&self, path: &Path) -> Result<(), Self::StoreError>;
}