Trait Layer2Descriptor

Source
pub trait Layer2Descriptor: Debug {
    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>;
}

Required Associated Types§

Required Methods§

Source

fn load(path: &Path) -> Result<Self, Self::LoadError>
where Self: Sized,

Source

fn store(&self, path: &Path) -> Result<(), Self::StoreError>

Implementations on Foreign Types§

Source§

impl Layer2Descriptor for Option<ImpossibleLayer2>

Source§

type LoadError = Infallible

Source§

type StoreError = Infallible

Source§

fn load( _: &Path, ) -> Result<Option<ImpossibleLayer2>, <Option<ImpossibleLayer2> as Layer2Descriptor>::LoadError>

Source§

fn store( &self, _: &Path, ) -> Result<(), <Option<ImpossibleLayer2> as Layer2Descriptor>::StoreError>

Implementors§