pub trait Storage { fn store<P: AsRef<Path>>(&self, filename: P) -> Result<()>; fn store_to_writer<W: Write>(&self, writer: &mut W) -> Result<()>; }