1 2 3 4 5 6 7
use crate::object::ConfigObject; pub trait ConfigSource: std::fmt::Debug { type Error: std::error::Error; fn load<'a>(&'a self) -> Result<ConfigObject<'a>, Self::Error>; }