pub trait BundleEncode {
type Settings: Default + Serialize + DeserializeOwned;
type Error: Into<Box<dyn Error + Send + Sync>>;
// Required method
fn encode<O>(
self,
sink: &mut O,
settings: &Self::Settings,
) -> Result<(), Self::Error>
where O: BundleSink;
}Expand description
Trait for encoding data into a bundle of files
Required Associated Types§
type Settings: Default + Serialize + DeserializeOwned
type Error: Into<Box<dyn Error + Send + Sync>>
Required Methods§
fn encode<O>(
self,
sink: &mut O,
settings: &Self::Settings,
) -> Result<(), Self::Error>where
O: BundleSink,
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.